📄 login_jsp.java
字号:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import com.accp.oa.common.*;
public final class login_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_c_if_test;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_forEach_var_items;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_jspx_tagPool_c_if_test = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_c_forEach_var_items = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_jspx_tagPool_c_if_test.release();
_jspx_tagPool_c_forEach_var_items.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=GBK");
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("\r\n");
out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n");
out.write("<html>\r\n");
out.write("\t<head>\r\n");
out.write("\t\t<title>欢迎登录企业办公自动化管理系统</title>\r\n");
out.write("\t\t<link href=\"");
out.print(request.getContextPath());
out.write("/css/style_2.css\" rel=\"stylesheet\">\r\n");
out.write("\t\t\t<link href=\"");
out.print(request.getContextPath());
out.write("/css/txt_bak.css\" rel=\"stylesheet\">\r\n");
out.write("<style type=\"text/css\">\r\n");
out.write("<!--\r\n");
out.write("body {\r\n");
out.write("\tbackground-image: url(");
out.print(request.getContextPath());
out.write("/images/denglu.jpg);\r\n");
out.write("}\r\n");
out.write("-->\r\n");
out.write("</style>\r\n");
out.write("\t\t<link href=\"css/style1.css\" rel=\"stylesheet\">\r\n");
out.write("\t</head>\r\n");
out.write("\t<body>\r\n");
out.write("\t<script type=\"text/javascript\">\r\n");
out.write("\t<!--\r\n");
out.write("\tfunction validate(){\r\n");
out.write(" var name = window.document.form1.username.value;\r\n");
out.write(" var password = window.document.form1.password.value;\r\n");
out.write(" if(name == \"\" ){\r\n");
out.write(" alert(\"用户名不能为空\");\r\n");
out.write(" return ;\r\n");
out.write(" }\r\n");
out.write(" if(password == \"\"){\r\n");
out.write(" \r\n");
out.write(" \talert(\"密码不空为空\");\r\n");
out.write(" \treturn;\r\n");
out.write(" }\r\n");
out.write(" window.document.form1.submit();\r\n");
out.write("\t}\r\n");
out.write("\t-->\r\n");
out.write("\t</script>\r\n");
out.write("\t\t<div id=\"Layer1\"\r\n");
out.write("\t\t\tstyle=\"position:absolute; left:610px; top:347px; width:360px; height:131px; z-index:1\">\r\n");
out.write("\t\t\t<form action=\"");
out.print(request.getContextPath() );
out.write("/servlet/LoginServlet\" name=\"form1\" method=\"post\">\r\n");
out.write("\t\t\t<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
out.write("\t\t\t\t\r\n");
out.write("\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t\t<td height=\"28\" colspan=\"3\" class=\"white\"> \r\n");
out.write("\t\t\t\t\t</td>\r\n");
out.write("\t\t\t\t</tr>\r\n");
out.write("\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t\t<td width=\"13%\" height=\"25\" align=\"center\">\r\n");
out.write("\t\t\t\t\t\t \r\n");
out.write("\t\t\t\t\t</td>\r\n");
out.write("\t\t\t\t\t<td width=\"23%\" align=\"center\">\r\n");
out.write("\t\t\t\t\t\t登录用户:\r\n");
out.write("\t\t\t\t\t</td>\r\n");
out.write("\t\t\t\t\t<td width=\"64%\" height=\"25\">\r\n");
out.write("\t\t\t\t\t");
out.write("\r\n");
out.write("\t\t\t\t\t\t<select name=\"username\" >\r\n");
out.write("\t\t\t\t\t\t<option value=\"\" selected=\"selected\">--请选择用户--</option>\r\n");
out.write("\t\t\t\t\t\t");
if (_jspx_meth_c_if_0(_jspx_page_context))
return;
out.write("\r\n");
out.write("\t\t\t\t\t\t</select>\r\n");
out.write("\t\t\t\t\t</td>\r\n");
out.write("\t\t\t\t</tr>\r\n");
out.write("\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t\t<td height=\"25\" align=\"center\">\r\n");
out.write("\t\t\t\t\t\t \r\n");
out.write("\t\t\t\t\t</td>\r\n");
out.write("\t\t\t\t\t<td height=\"25\" align=\"center\">\r\n");
out.write("\t\t\t\t\t\t登录密码:\r\n");
out.write("\t\t\t\t\t</td>\r\n");
out.write("\t\t\t\t\t<td height=\"25\">\r\n");
out.write("\t\t\t\t\t\t<input name=\"password\" type=\"password\" class=\"txt_grey\" size=\"30\">\r\n");
out.write("\t\t\t\t\t</td>\r\n");
out.write("\t\t\t\t</tr>\r\n");
out.write("\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t\t<td height=\"25\" colspan=\"3\" align=\"center\">\r\n");
out.write("\t\t\t\t\t\t<input name=\"Submit\" type=\"button\" class=\"btn_grey\" value=\"登录\" onclick=\"validate()\">\r\n");
out.write("\t\t\t\t\t\t<input name=\"Submit2\" type=\"reset\" class=\"btn_grey\" value=\"取消\">\r\n");
out.write("\t\t\t\t\t</td>\r\n");
out.write("\t\t\t\t</tr>\r\n");
out.write("\t\t\t\t<tr>\r\n");
out.write("\t\t\t\t\t<td height=\"25\" colspan=\"3\" align=\"center\" class=\"head\">\r\n");
out.write("\t\t\t\t\t\t\r\n");
out.write("\t\t\t\t\t</td>\r\n");
out.write("\t\t\t\t</tr>\r\n");
out.write("\t\t\t\t\r\n");
out.write("\t\t\t</table>\r\n");
out.write("\t\t\t</form>\r\n");
out.write("\t\t</div>\r\n");
out.write("\t\t<div>\r\n");
out.write("\t\t</div>\r\n");
out.write("\t</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_c_if_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:if
org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_if_0 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
_jspx_th_c_if_0.setPageContext(_jspx_page_context);
_jspx_th_c_if_0.setParent(null);
_jspx_th_c_if_0.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${!(empty usernames)}", java.lang.Boolean.class, (PageContext)_jspx_page_context, null, false)).booleanValue());
int _jspx_eval_c_if_0 = _jspx_th_c_if_0.doStartTag();
if (_jspx_eval_c_if_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\r\n");
out.write("\t\t\t\t\t\t");
if (_jspx_meth_c_forEach_0(_jspx_th_c_if_0, _jspx_page_context))
return true;
out.write("\r\n");
out.write("\t\t\t\t\t\t");
int evalDoAfterBody = _jspx_th_c_if_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_if_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
_jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_0);
return false;
}
private boolean _jspx_meth_c_forEach_0(javax.servlet.jsp.tagext.JspTag _jspx_th_c_if_0, PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:forEach
org.apache.taglibs.standard.tag.rt.core.ForEachTag _jspx_th_c_forEach_0 = (org.apache.taglibs.standard.tag.rt.core.ForEachTag) _jspx_tagPool_c_forEach_var_items.get(org.apache.taglibs.standard.tag.rt.core.ForEachTag.class);
_jspx_th_c_forEach_0.setPageContext(_jspx_page_context);
_jspx_th_c_forEach_0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_if_0);
_jspx_th_c_forEach_0.setItems((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${usernames}", java.lang.Object.class, (PageContext)_jspx_page_context, null, false));
_jspx_th_c_forEach_0.setVar("user");
int[] _jspx_push_body_count_c_forEach_0 = new int[] { 0 };
try {
int _jspx_eval_c_forEach_0 = _jspx_th_c_forEach_0.doStartTag();
if (_jspx_eval_c_forEach_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
do {
out.write("\r\n");
out.write("\t\t\t\t\t\t<option value=\"");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${user.name}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write('"');
out.write('>');
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${user.name}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("</option>\r\n");
out.write("\t\t\t\t\t\t");
int evalDoAfterBody = _jspx_th_c_forEach_0.doAfterBody();
if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
break;
} while (true);
}
if (_jspx_th_c_forEach_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
return true;
} catch (Throwable _jspx_exception) {
while (_jspx_push_body_count_c_forEach_0[0]-- > 0)
out = _jspx_page_context.popBody();
_jspx_th_c_forEach_0.doCatch(_jspx_exception);
} finally {
_jspx_th_c_forEach_0.doFinally();
_jspx_tagPool_c_forEach_var_items.reuse(_jspx_th_c_forEach_0);
}
return false;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -