⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 updatestudent_0002ejsp_jsp.java

📁 一个完整的学生管理系统
💻 JAVA
字号:
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;


public class updateStudent_0002ejsp_jsp extends HttpJspBase {

    // begin [file="/updateStudent.jsp";from=(6,0);to=(6,54)]
    // end

    static {
    }
    public updateStudent_0002ejsp_jsp( ) {
    }

    private static boolean _jspx_inited = false;

    public final void _jspx_init() throws org.apache.jasper.runtime.JspException {
    }

    public void _jspService(HttpServletRequest request, HttpServletResponse  response)
        throws java.io.IOException, ServletException {

        JspFactory _jspxFactory = null;
        PageContext pageContext = null;
        HttpSession session = null;
        ServletContext application = null;
        ServletConfig config = null;
        JspWriter out = null;
        Object page = this;
        String  _value = null;
        try {

            if (_jspx_inited == false) {
                synchronized (this) {
                    if (_jspx_inited == false) {
                        _jspx_init();
                        _jspx_inited = true;
                    }
                }
            }
            _jspxFactory = JspFactory.getDefaultFactory();
            response.setContentType("text/html; charset=gb2312");
            pageContext = _jspxFactory.getPageContext(this, request, response,
            			"", true, 8192, true);

            application = pageContext.getServletContext();
            config = pageContext.getServletConfig();
            session = pageContext.getSession();
            out = pageContext.getOut();

            // HTML // begin [file="/updateStudent.jsp";from=(0,87);to=(6,0)]
                out.write("\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<title>无标题文档</title>\r\n</head>\r\n");

            // end
            // begin [file="/updateStudent.jsp";from=(6,0);to=(6,54)]
                update update = null;
                boolean _jspx_specialupdate  = false;
                 synchronized (pageContext) {
                    update= (update)
                    pageContext.getAttribute("update",PageContext.PAGE_SCOPE);
                    if ( update == null ) {
                        _jspx_specialupdate = true;
                        try {
                            update = (update) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "update");
                        } catch (ClassNotFoundException exc) {
                             throw new InstantiationException(exc.getMessage());
                        } catch (Exception exc) {
                             throw new ServletException (" Cannot create bean of class "+"update", exc);
                        }
                        pageContext.setAttribute("update", update, PageContext.PAGE_SCOPE);
                    }
                 } 
                if(_jspx_specialupdate == true) {
            // end
            // HTML // begin [file="/updateStudent.jsp";from=(6,54);to=(7,0)]
                out.write("\r\n");

            // end
            // begin [file="/updateStudent.jsp";from=(7,0);to=(7,45)]
                JspRuntimeLibrary.introspect(pageContext.findAttribute("update"), request);
            // end
            // HTML // begin [file="/updateStudent.jsp";from=(6,54);to=(7,0)]
                out.write("\r\n");

            // end
            // begin [file="/updateStudent.jsp";from=(6,0);to=(6,54)]
                }
            // end
            // HTML // begin [file="/updateStudent.jsp";from=(8,14);to=(10,0)]
                out.write("\r\n<body bgcolor=\"#0099FF\" text=\"#FFFFFF\" link=\"#00FF00\">\r\n");

            // end
            // begin [file="/updateStudent.jsp";from=(10,2);to=(26,0)]
                
                try {
                String s = request.getParameter("password");
                if(s==null || s.equals("")) throw new Exception("错误,密码不能为空!!");
                String stu_id = (String)session.getAttribute("id");
                if(stu_id==null){response.sendRedirect("login.jsp");} 
                update.setStu_id(stu_id);
                update.update();
                String d= update.getStu_id();
                out.print("学生号:  "+d+"<br>");
                String a = update.getPassword();
                out.print("您的新密码:  "+a+"<br>");
                String b= update.getTel();
                out.print("您的电话:  "+b+"<br>");
                String c= update.getE_mail();
                out.print("E_mail:  "+c+"<br>");
            // end
            // HTML // begin [file="/updateStudent.jsp";from=(26,2);to=(29,0)]
                out.write("\r\n<p><a href=\"student.jsp\">&lt;&lt;您已经更新成功,请返回</a> \r\n<p>\r\n");

            // end
            // begin [file="/updateStudent.jsp";from=(29,2);to=(31,0)]
                
                }catch (Exception e){out.print(e.toString());}
            // end
            // HTML // begin [file="/updateStudent.jsp";from=(31,2);to=(35,0)]
                out.write("\r\n</body>\r\n\r\n</html>\r\n");

            // end

        } catch (Throwable t) {
            if (out != null && out.getBufferSize() != 0)
                out.clearBuffer();
            if (pageContext != null) pageContext.handlePageException(t);
        } finally {
            if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -