📄 adduser_jsp.java
字号:
package org.apache.jsp.main;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
public final class addUser_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_ww_form_name_method_action;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_ww_iterator_value_id;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_ww_property_value_nobody;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_jspx_tagPool_ww_form_name_method_action = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_ww_iterator_value_id = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_ww_property_value_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_jspx_tagPool_ww_form_name_method_action.release();
_jspx_tagPool_ww_iterator_value_id.release();
_jspx_tagPool_ww_property_value_nobody.release();
}
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;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html;charset=UTF-8");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("\r\n");
out.write("<title>::::车辆管理系统::::</title>\r\n");
out.write("\r\n");
out.write("<link href=\"css/Style.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
out.write("<script type=\"text/javascript\">\r\n");
out.write("function init(){\r\n");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${\"errorusername\"}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write(".style.visibility=\"hidden\";\r\n");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${\"errorpassword\"}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write(".style.visibility=\"hidden\";\r\n");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${\"errorposition\"}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write(".style.visibility=\"hidden\";\r\n");
out.write("}\r\n");
out.write("function validate(m,n){\r\n");
out.write("var name=m.value;\r\n");
out.write(" if(name.length<4){\r\n");
out.write(" if(n==1)\r\n");
out.write(" document.getElementById(\"errorusername\").style.visibility=\"visible\";\r\n");
out.write(" if(n==2)\r\n");
out.write(" document.getElementById(\"errorpassword\").style.visibility=\"visible\";\r\n");
out.write(" if(n==3)\r\n");
out.write(" document.getElementById(\"errorposition\").style.visibility=\"visible\";\r\n");
out.write(" \r\n");
out.write(" }\r\n");
out.write("\r\n");
out.write("}\r\n");
out.write("\r\n");
out.write("</script>\r\n");
out.write("</head>\r\n");
out.write("\r\n");
out.write("<body onload=\"init()\">\r\n");
out.write("<p> </p>\r\n");
out.write("\r\n");
out.write("<table width=\"500\" border=\"1\" align=\"center\" bordercolor=\"#FFFFFF\" class=\"Xsmall\">\r\n");
out.write(" <tr> \r\n");
out.write(" <td bordercolor=\"#000000\"> \r\n");
out.write(" ");
if (_jspx_meth_ww_form_0(_jspx_page_context))
return;
out.write("\r\n");
out.write("</table> \r\n");
out.write("</body>\r\n");
out.write("</html>\r\n");
} catch (Throwable t) {
if (!(t instanceof SkipPageException)){
out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
out.clearBuffer();
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
}
} finally {
if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
}
}
private boolean _jspx_meth_ww_form_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// ww:form
com.opensymphony.webwork.views.jsp.ui.FormTag _jspx_th_ww_form_0 = (com.opensymphony.webwork.views.jsp.ui.FormTag) _jspx_tagPool_ww_form_name_method_action.get(com.opensymphony.webwork.views.jsp.ui.FormTag.class);
_jspx_th_ww_form_0.setPageContext(_jspx_page_context);
_jspx_th_ww_form_0.setParent(null);
_jspx_th_ww_form_0.setAction("insert.action");
_jspx_th_ww_form_0.setMethod("post");
_jspx_th_ww_form_0.setName("FrontPage_Form1");
int _jspx_eval_ww_form_0 = _jspx_th_ww_form_0.doStartTag();
if (_jspx_eval_ww_form_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
if (_jspx_eval_ww_form_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
out = _jspx_page_context.pushBody();
_jspx_th_ww_form_0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
_jspx_th_ww_form_0.doInitBody();
}
do {
out.write(" \r\n");
out.write(" <input type=\"hidden\" name=\"usertype\" value=\"1\">\r\n");
out.write(" <table width=\"100%\" height=\"1002%\" border=\"0\" bgcolor=\"#FFFFFF\" class=\"Xsmall\">\r\n");
out.write(" <tr> \r\n");
out.write(" <td height=\"60\"> \r\n");
out.write(" \t<div align=\"center\"><strong>用户管理增加用户</strong></div>\r\n");
out.write(" \t<div align=\"center\"><strong></strong></div>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr> \r\n");
out.write(" <td height=\"26\"><div align=\"center\"> \r\n");
out.write(" 帐号: \r\n");
out.write(" <input name=\"user.username\" type=\"text\" class=\"Sborder\" id=\"saname\" size=\"12\" maxlength=\"20\" onchange=\"validate(this,1)\">\r\n");
out.write(" </div></td>\r\n");
out.write(" <td id=\"errorusername\"><font color=\"red\">用户名必须填写,长度不能小4</font></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr> \r\n");
out.write(" <td height=\"26\"><div align=\"center\"> \r\n");
out.write(" 密码: \r\n");
out.write(" <input name=\"user.password\" type=\"password\" class=\"Sborder\" id=\"saps\" size=\"12\" maxlength=\"20\" onchange=\"validate(this,2)\">\r\n");
out.write(" </div></td>\r\n");
out.write(" <td id=\"errorpassword\"><font color=\"red\">密码必须填写,长度不能小4</font></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr> \r\n");
out.write(" <td height=\"26\"><div align=\"center\"> \r\n");
out.write(" 性别: \r\n");
out.write(" <select name=\"user.sex\">\r\n");
out.write(" <option value=\"男\">男</option>\r\n");
out.write(" <option value=\"女\">女</option>\r\n");
out.write(" </select>\r\n");
out.write(" </div></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr> \r\n");
out.write(" <td height=\"26\"><div align=\"center\"> \r\n");
out.write(" 部门: \r\n");
out.write(" \r\n");
out.write(" <select name=\"user.dept.deptid\" >\r\n");
out.write(" ");
if (_jspx_meth_ww_iterator_0(_jspx_th_ww_form_0, _jspx_page_context))
return true;
out.write("\r\n");
out.write(" </select>\r\n");
out.write(" </div></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr> \r\n");
out.write(" <td height=\"26\"><div align=\"center\"> \r\n");
out.write(" 角色: \r\n");
out.write(" \r\n");
out.write(" <select name=\"user.privil.privilid\" >\r\n");
out.write(" ");
if (_jspx_meth_ww_iterator_1(_jspx_th_ww_form_0, _jspx_page_context))
return true;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -