📄 updatestu_0002ejsp_jsp.java
字号:
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class updatestu_0002ejsp_jsp extends HttpJspBase {
// begin [file="/updatestu.jsp";from=(7,0);to=(7,55)]
// end
static {
}
public updatestu_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="/updatestu.jsp";from=(0,100);to=(7,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<body bgcolor=\"#0099FF\" text=\"#FFFFFF\" link=\"#33FF00\">\r\n");
// end
// begin [file="/updatestu.jsp";from=(7,0);to=(7,55)]
student stu = null;
boolean _jspx_specialstu = false;
synchronized (request) {
stu= (student)
pageContext.getAttribute("stu",PageContext.REQUEST_SCOPE);
if ( stu == null ) {
_jspx_specialstu = true;
try {
stu = (student) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "student");
} catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
} catch (Exception exc) {
throw new ServletException (" Cannot create bean of class "+"student", exc);
}
pageContext.setAttribute("stu", stu, PageContext.REQUEST_SCOPE);
}
}
if(_jspx_specialstu == true) {
// end
// begin [file="/updatestu.jsp";from=(7,0);to=(7,55)]
}
// end
// HTML // begin [file="/updatestu.jsp";from=(7,55);to=(9,2)]
out.write("\r\n<p>\r\n ");
// end
// begin [file="/updatestu.jsp";from=(9,4);to=(11,0)]
String stu_id=request.getParameter("id");
// end
// HTML // begin [file="/updatestu.jsp";from=(11,2);to=(17,40)]
out.write("\r\n</p>\r\n<p align=\"center\"><font color=\"#00FF00\" size=\"+3\" face=\"方正舒体\">更新学生</font></p>\r\n<p align=\"center\"> </p>\r\n<form method=\"post\" action=\"StudentSvlt\">\r\n <input type=\"hidden\" name=\"action\" value=\"update\">\r\n <input type=\"hidden\" name=\"id\" value=\"");
// end
// begin [file="/updatestu.jsp";from=(17,43);to=(17,49)]
out.print(stu_id);
// end
// HTML // begin [file="/updatestu.jsp";from=(17,51);to=(62,0)]
out.write("\">\r\n <table width=\"49%\" height=\"50\" border=\"1\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n <tr> \r\n <td width=\"48%\">学生姓名</td>\r\n <td width=\"52%\"><input name=\"name\" type=\"text\" id=\"name\" ></td>\r\n </tr>\r\n <tr> \r\n <td>密码</td>\r\n <td><input name=\"password\" type=\"password\" id=\"password\" maxlength=\"10\"></td>\r\n </tr>\r\n <tr> \r\n <td>学生所在系</td>\r\n <td><select name=\"dep\" size=\"1\" id=\"dep\">\r\n <option>计算机</option>\r\n <option>机械系</option>\r\n <option>电子系</option>\r\n <option>数理系</option>\r\n </select></td>\r\n </tr>\r\n <tr> \r\n <td>性别</td>\r\n <td><select name=\"sex\" size=\"1\" id=\"select\">\r\n <option>男</option>\r\n <option>女</option>\r\n </select></td>\r\n </tr>\r\n <tr> \r\n <td>籍贯</td>\r\n <td><select name=\"jiguan\" size=\"1\" id=\"jiguan\">\r\n <option>陕西</option>\r\n <option>河南</option>\r\n <option>山东</option>\r\n <option>内蒙古</option>\r\n <option>河北</option>\r\n </select></td>\r\n </tr>\r\n </table>\r\n <p align=\"center\"> \r\n <input type=\"submit\" name=\"Submit\" value=\"提交\">\r\n </p>\r\n</form>\r\n<p> </p>\r\n<p><a href=\"getStudent.jsp\"><<Back</a></p>\r\n </body>\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 + -