📄 user_005fadd_jsp.java
字号:
package org.apache.jsp.user;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import com.web.util.*;
import com.business.vo.User;
public final class user_005fadd_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
static {
_jspx_dependants = new java.util.Vector(3);
_jspx_dependants.add("/WEB-INF/Page.tld");
_jspx_dependants.add("/user/../include/include.inc");
_jspx_dependants.add("/user/../include/show_message.jsp");
}
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_myTag_place_name_back_nobody;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_myTag_title_name_nobody;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_myTag_submit_type_nobody;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_jspx_tagPool_myTag_place_name_back_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_myTag_title_name_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_myTag_submit_type_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_jspx_tagPool_myTag_place_name_back_nobody.release();
_jspx_tagPool_myTag_title_name_nobody.release();
_jspx_tagPool_myTag_submit_type_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=GB2312");
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("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
out.write("<HTML>\r\n");
out.write("<HEAD>\r\n");
out.write("\r\n");
out.write("\r\n");
out.write("<META http-equiv=\"Content-Type\" content=\"text/html; charset=GB18030\">\r\n");
out.write("<META name=\"GENERATOR\" content=\"IBM WebSphere Studio\">\r\n");
out.write("<META http-equiv=\"Content-Style-Type\" content=\"text/css\">\r\n");
out.write("<LINK href=\"");
out.print(request.getContextPath());
out.write("/style/style.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
out.write("<script language=javascript src=\"");
out.print(request.getContextPath());
out.write("/js/layer.js\"></script>\r\n");
out.write("<script language=javascript src=\"");
out.print(request.getContextPath());
out.write("/js/style.js\"></script>\r\n");
out.write("<script language=javascript src=\"");
out.print(request.getContextPath());
out.write("/js/univerify.js\"></script>\r\n");
out.write("<script language=javascript src=\"");
out.print(request.getContextPath());
out.write("/js/manage.js\"></script>\r\n");
out.write("<script language=javascript src=\"");
out.print(request.getContextPath());
out.write("/js/DateInput.js\"></script>\r\n");
out.write("\r\n");
out.write("<TITLE>user_add.jsp</TITLE>\r\n");
out.write("</HEAD> \r\n");
out.write("<BODY> \r\n");
out.write("\r\n");
out.write("\r\n");
out.write("\r\n");
User loginUserInfo ;
String SESSION_ROLE_ID = "";
String SESSION_USER_ID = "";
if(request.getSession().getAttribute("LOGIN_USER")!=null){
loginUserInfo = (User)request.getSession().getAttribute("LOGIN_USER");
SESSION_ROLE_ID = loginUserInfo.getRoleId();
SESSION_USER_ID = loginUserInfo.getUserId();
}else{
out.println("<script language=javascript>self.parent.location.href='/jxcWeb/login.jsp';</script>");
}
if(session.getAttribute("PAGE_MANAGE")!=null){
PageUrlManage pManage = (PageUrlManage)session.getAttribute("PAGE_MANAGE");
out.println("<script language=javascript>openNewWindow('"+request.getContextPath()+pManage.getMessagePageUrl()+"');</script>");
}
out.write('\r');
out.write('\n');
if (_jspx_meth_myTag_place_0(_jspx_page_context))
return;
out.write("\r\n");
out.write("<form method=\"post\" action=\"../UserServlet\" onsubmit=\"return verifyAll(this)\">\r\n");
out.write("\t<table class=\"table1\">\r\n");
out.write("\t\t<tr> \r\n");
out.write("\t\t\t<td class=\"td1\" colspan=2>");
if (_jspx_meth_myTag_title_0(_jspx_page_context))
return;
out.write("</td>\r\n");
out.write("\t\t</tr>\r\n");
out.write("\t\t<tr>\r\n");
out.write("\t\t\t<td class=\"td2\">用户账号:</td>\r\n");
out.write("\t\t\t<td><input name=\"userId\" nullable=\"no\" datatype=\"text\" maxsize=\"128\" chname=\"用户账号\"></td>\r\n");
out.write("\t\t</tr>\r\n");
out.write("\t\t<tr>\r\n");
out.write("\t\t\t<td class=\"td2\">用户密码:</td>\r\n");
out.write("\t\t\t<td><input type=\"password\" name=\"userPwd\" nullable=\"no\" datatype=\"text\" maxsize=\"128\" chname=\"用户密码\"></td>\r\n");
out.write("\t\t</tr>\r\n");
out.write("\t\t\r\n");
out.write("\t\t<tr>\r\n");
out.write("\t\t\t<td class=\"td2\">用户角色:</td>\r\n");
out.write("\t\t\t<td>");
out.print(FormElements.getDropListExt("select roleName,roleId from role","roleId","nullable='no' chname='用户角色'"));
out.write("\r\n");
out.write("\t\t</tr>\r\n");
out.write("\t\t\r\n");
out.write("\t\t<tr>\r\n");
out.write("\t\t\t<td class=\"td2\">用户名称:</td>\r\n");
out.write("\t\t\t<td><input name=\"userName\" nullable=\"no\" datatype=\"text\" maxsize=\"128\" chname=\"用户名称\"></td>\r\n");
out.write("\t\t</tr>\t\t\r\n");
out.write("\t\t<tr>\r\n");
out.write("\t\t\t<td class=\"td2\">电话:</td>\r\n");
out.write("\t\t\t<td><input name=\"userPhone\" nullable=\"no\" datatype=\"text\" maxsize=\"128\" chname=\"电话\"></td>\r\n");
out.write("\t\t</tr>\r\n");
out.write("\t\t<tr>\r\n");
out.write("\t\t\t<td class=\"td2\">地址:</td>\r\n");
out.write("\t\t\t<td><input name=\"userAddress\" nullable=\"no\" datatype=\"text\" maxsize=\"128\" chname=\"地址\"></td>\r\n");
out.write("\t\t</tr>\r\n");
out.write("\t\t\r\n");
out.write("\t\t<tr>\r\n");
out.write("\t\t\t<td colspan=2>\r\n");
out.write("\t\t\t\t<input name=\"actionType\" value=\"add\" type=\"hidden\">\r\n");
out.write("\t\t\t\t");
if (_jspx_meth_myTag_submit_0(_jspx_page_context))
return;
out.write("\r\n");
out.write("\t\t\t</td>\r\n");
out.write("\t\t</tr>\r\n");
out.write("\t</table>\r\n");
out.write("\t\r\n");
out.write("</form>\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_myTag_place_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// myTag:place
com.web.tag.Place _jspx_th_myTag_place_0 = (com.web.tag.Place) _jspx_tagPool_myTag_place_name_back_nobody.get(com.web.tag.Place.class);
_jspx_th_myTag_place_0.setPageContext(_jspx_page_context);
_jspx_th_myTag_place_0.setParent(null);
_jspx_th_myTag_place_0.setName("系统管理<b>--></b>用户管理<b>--></b>用户添加");
_jspx_th_myTag_place_0.setBack("user_list.jsp");
int _jspx_eval_myTag_place_0 = _jspx_th_myTag_place_0.doStartTag();
if (_jspx_th_myTag_place_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_myTag_place_name_back_nobody.reuse(_jspx_th_myTag_place_0);
return false;
}
private boolean _jspx_meth_myTag_title_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// myTag:title
com.web.tag.Title _jspx_th_myTag_title_0 = (com.web.tag.Title) _jspx_tagPool_myTag_title_name_nobody.get(com.web.tag.Title.class);
_jspx_th_myTag_title_0.setPageContext(_jspx_page_context);
_jspx_th_myTag_title_0.setParent(null);
_jspx_th_myTag_title_0.setName("用户添加");
int _jspx_eval_myTag_title_0 = _jspx_th_myTag_title_0.doStartTag();
if (_jspx_th_myTag_title_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_myTag_title_name_nobody.reuse(_jspx_th_myTag_title_0);
return false;
}
private boolean _jspx_meth_myTag_submit_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// myTag:submit
com.web.tag.Submit _jspx_th_myTag_submit_0 = (com.web.tag.Submit) _jspx_tagPool_myTag_submit_type_nobody.get(com.web.tag.Submit.class);
_jspx_th_myTag_submit_0.setPageContext(_jspx_page_context);
_jspx_th_myTag_submit_0.setParent(null);
_jspx_th_myTag_submit_0.setType("submit");
int _jspx_eval_myTag_submit_0 = _jspx_th_myTag_submit_0.doStartTag();
if (_jspx_th_myTag_submit_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_myTag_submit_type_nobody.reuse(_jspx_th_myTag_submit_0);
return false;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -