#JavaWeb
###login.jsp对应生产的java文件
package org.apache.jsp.WEB_002dINF.jsp.admin.system;
import javax.servlet.;
import javax.servlet.http.;
import javax.servlet.jsp.*;
public final class login_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
static {
_jspx_dependants = new java.util.ArrayList(1);
_jspx_dependants.add("/WEB-INF/tlds/fns.tld");
}
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_set_var_value_nobody;
private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_fmt_message_key_nobody;
private org.glassfish.jsp.api.ResourceInjector _jspx_resourceInjector;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspInit() {
_jspx_tagPool_c_set_var_value_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
_jspx_tagPool_fmt_message_key_nobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
}
public void _jspDestroy() {
_jspx_tagPool_c_set_var_value_nobody.release();
_jspx_tagPool_fmt_message_key_nobody.release();
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
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 {
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;
_jspx_resourceInjector = (org.glassfish.jsp.api.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("\n");
if (_jspx_meth_c_set_0(_jspx_page_context))
return;
out.write("\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write(""-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n");
out.write("\n");
out.write("
\n");out.write("\t
");if (_jspx_meth_fmt_message_0(_jspx_page_context))
return;
out.write("
\n");out.write("\t\n");
out.write("\t\n");
out.write("\t\n");
out.write("\t\n");
out.write("\t\n");
out.write("\t
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.evaluateExpression("${ctx }", java.lang.String.class, (PageContext)_jspx_page_context, null));
out.write("/favicon.ico\" />\n");
out.write("\t\n");
out.write("\t
out.write("/static/plugins/easyui/jquery/jquery-1.11.1.min.js\">\n");
out.write("\t
out.write("/static/plugins/jquery-validation/1.11.1/jquery.validate.min.js\" type=\"text/javascript\">\n");
out.write("\t
out.write("/static/plugins/jquery-validation/1.11.1/messages_bs_zh.js\" type=\"text/javascript\">\n");
out.write("\t
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.evaluateExpression("${ctx}", java.lang.String.class, (PageContext)_jspx_page_context, null));
out.write("/static/plugins/jquery-validation/1.11.1/validate.css\" type=\"text/css\" rel=\"stylesheet\"/>\n");
out.write("\t
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.evaluateExpression("${ctx}", java.lang.String.class, (PageContext)_jspx_page_context, null));
out.write("/static/bootstrap/2.3.1/css_cerulean/bootstrap.min.css\" type=\"text/css\" rel=\"stylesheet\" />\n");
out.write("
out.write("/static/bootstrap/2.3.1/js/bootstrap.min.js\" type=\"text/javascript\">\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("\t
out.write(" html,body,table{background-color:#f5f5f5;width:100%;height:500px}.form-signin-heading{font-size:36px;margin-bottom:20px;color:#0663a2;}\n");
out.write(" .form-signin{position:relative;text-align:left;width:320px;padding:25px 29px 29px;margin:0 auto 20px;background-color:#fff;border:1px solid #e5e5e5;\n");
out.write(" \t-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:0 1px 2px rgba(0,0,0,.05);box-shadow:0 1px 2px rgba(0,0,0,.05);}\n");
out.write(" .form-signin .checkbox{margin-bottom:10px;color:#0663a2;} .form-signin .input-label{font-size:16px;line-height:23px;color:#999;}\n");
out.write(" .form-signin .input-block-level{font-size:16px;height:auto;margin-bottom:15px;padding:7px;*width:283px;*padding-bottom:0;_padding:7px 7px 9px 7px;}\n");
out.write(" .form-signin .btn.btn-large{font-size:16px;} .form-signin #theme{position:absolute;right:15px;bottom:10px;}\n");
out.write(" \n");
out.write("\t
out.write("\t\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("\n");
out.write("
\n");out.write("\t
\n"); out.write(" ");if (_jspx_meth_fmt_message_1(_jspx_page_context)) return; out.write("\n"); out.write(" \n");out.write(" out.write(" "); if (_jspx_meth_fmt_message_2(_jspx_page_context)) return; out.write(":\n"); out.write(" \n"); out.write(" "); if (_jspx_meth_fmt_message_3(_jspx_page_context)) return; out.write(":\n"); out.write(" \n"); out.write("
\n");
\n");out.write("\t \t"); if (_jspx_meth_fmt_message_4(_jspx_page_context)) return; out.write("\n"); out.write("\t\t out.write("\t\t English\n");out.write("\t\t \n");out.write("\t\t \n"); out.write("\t out.write(" if (_jspx_meth_fmt_message_5(_jspx_page_context)) return; out.write("\" style=\"display:none;\">"); if (_jspx_meth_fmt_message_6(_jspx_page_context)) return; out.write(" \n");out.write(" if (_jspx_meth_fmt_message_7(_jspx_page_context)) return; out.write("\" /> \n"); out.write("\n"); out.write(" \n");out.write(" Copyright © 2015 - Powered By Anbang Insurance Group\n"); out.write("\t |
out.write("\n");
out.write("\n");
out.write("
out.write("//回车键登录\n");
out.write(" $(document).ready(function () {\n");
out.write("\t$('#messageBox').hide();\n");
out.write("\t$('#messageBox').val('');\n");
out.write("\t$('#submitBtn').removeAttr('disabled');\n");
out.write(" $('#username').focus();\n");
out.write(" $(\"#loginForm\").validate({\n");
out.write(" submitHandler: function (form) {\n");
out.write(" $('#messageBox').hide();\n");
out.write(" $('#submitBtn').attr('disabled', 'disabled');\n");
out.write("\n");
out.write(" $.ajax({\n");
out.write(" url: '");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.evaluateExpression("${ctx}", java.lang.String.class, (PageContext)_jspx_page_context, null));
out.write("/api/login',\n");
out.write(" method: 'POST',\n");
out.write(" data: {\n");
out.write(" account: form.username.value,\n");
out.write(" password: form.password.value,\n");
out.write(" rememberMe: form.rememberMe.checked ? 'true' : 'false'\n");
out.write(" },\n");
out.write(" success: function () {\n");
out.write(" location.href = '");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.evaluateExpression("${ctx}", java.lang.String.class, (PageContext)_jspx_page_context, null));
out.write("/a/system';\n");
out.write(" },\n");
out.write(" error: function (response, textStatus, errorThrown) {\n");
out.write(" \t$('#messageBox').show();\n");
out.write(" \ttry {\n");
out.write(" \t\tresponse.status;\n");
out.write(" \t} catch (e) {\n");
out.write(" \t\t$('#messageBox').html(\"请求超时,请刷新当前页面!\");\n");
out.write(" \t\t$('#submitBtn').removeAttr('disabled');\n");
out.write(" \t\treturn;\n");
out.write(" \t}\n");
out.write(" \tif (response.status == 403 ) {\n");
out.write(" \t\t$('#messageBox').html(\"没有相应权限,禁止访问!\");\n");
out.write(" \t\t$('#submitBtn').removeAttr('disabled');\n");
out.write(" \t\treturn;\n");
out.write(" \t}\n");
out.write(" \tif (response.status == 12007 ) {\n");
out.write(" \t\t$('#messageBox').html(\"HTTP 状态: \" + response.status + \", 状态数据:\" + response.statusText + \",可能原因: 服务器名称无法被解析!\");\n");
out.write(" \t\t$('#submitBtn').removeAttr('disabled');\n");
out.write(" \t\treturn;\n");
out.write(" \t}\n");
out.write(" \tif (response.status == 12029 || response.status == 0) {\n");
out.write(" \t\t$('#messageBox').html(\"无法与远程服务器建立连接, 可能原因: 网络问题,服务器停止服务,服务器故障!\");\n");
out.write(" \t\t$('#submitBtn').removeAttr('disabled');\n");
out.write(" \t\treturn;\n");
out.write(" \t}\n");
out.write(" \t\n");
out.write(" \tif (response.status != 200 && response.status != 12152 && response.status != 12031) {\n");
out.write(" \t\t$('#messageBox').html(\"错误:response:\" + response + \"返回状态:\" + response.status + \" : \" + response.statusText + \"\\n返回文本数据:\" + response.responseText + \"\\n异常信息:\" + errorThrown);\n");
out.write(" \t}\n");
out.write(" \t\n");
out.write(" $('#messageBox').html(response.responseText);\n");
out.write(" $('#submitBtn').removeAttr('disabled');\n");
out.write(" },\n");
out.write(" complete: function () {\n");
out.write("// $('#submitBtn').removeAttr('disabled');\n");
out.write(" }\n");
out.write(" });\n");
out.write(" }\n");
out.write(" });\n");
out.write(" \n");
out.write("});\n");
out.write("\n");
out.write("\n");
out.write("\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);
else throw new ServletException(t);
}
} finally {
_jspxFactory.releasePageContext(_jspx_page_context);
}
}
private boolean _jspx_meth_c_set_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// c:set
org.apache.taglibs.standard.tag.rt.core.SetTag _jspx_th_c_set_0 = (org.apache.taglibs.standard.tag.rt.core.SetTag) _jspx_tagPool_c_set_var_value_nobody.get(org.apache.taglibs.standard.tag.rt.core.SetTag.class);
_jspx_th_c_set_0.setPageContext(_jspx_page_context);
_jspx_th_c_set_0.setParent(null);
_jspx_th_c_set_0.setVar("ctx");
_jspx_th_c_set_0.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.evaluateExpression("${pageContext.request.contextPath}", java.lang.Object.class, (PageContext)_jspx_page_context, null));
int _jspx_eval_c_set_0 = _jspx_th_c_set_0.doStartTag();
if (_jspx_th_c_set_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_0);
return true;
}
_jspx_tagPool_c_set_var_value_nobody.reuse(_jspx_th_c_set_0);
return false;
}
private boolean _jspx_meth_fmt_message_0(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_message_0 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _jspx_tagPool_fmt_message_key_nobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_message_0.setPageContext(_jspx_page_context);
_jspx_th_fmt_message_0.setParent(null);
_jspx_th_fmt_message_0.setKey("text.project.name");
int _jspx_eval_fmt_message_0 = _jspx_th_fmt_message_0.doStartTag();
if (_jspx_th_fmt_message_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_jspx_tagPool_fmt_message_key_nobody.reuse(_jspx_th_fmt_message_0);
return true;
}
_jspx_tagPool_fmt_message_key_nobody.reuse(_jspx_th_fmt_message_0);
return false;
}
private boolean _jspx_meth_fmt_message_1(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_message_1 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _jspx_tagPool_fmt_message_key_nobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_message_1.setPageContext(_jspx_page_context);
_jspx_th_fmt_message_1.setParent(null);
_jspx_th_fmt_message_1.setKey("text.project.name");
int _jspx_eval_fmt_message_1 = _jspx_th_fmt_message_1.doStartTag();
if (_jspx_th_fmt_message_1.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_jspx_tagPool_fmt_message_key_nobody.reuse(_jspx_th_fmt_message_1);
return true;
}
_jspx_tagPool_fmt_message_key_nobody.reuse(_jspx_th_fmt_message_1);
return false;
}
private boolean _jspx_meth_fmt_message_2(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_message_2 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _jspx_tagPool_fmt_message_key_nobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_message_2.setPageContext(_jspx_page_context);
_jspx_th_fmt_message_2.setParent(null);
_jspx_th_fmt_message_2.setKey("text.user.account");
int _jspx_eval_fmt_message_2 = _jspx_th_fmt_message_2.doStartTag();
if (_jspx_th_fmt_message_2.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_jspx_tagPool_fmt_message_key_nobody.reuse(_jspx_th_fmt_message_2);
return true;
}
_jspx_tagPool_fmt_message_key_nobody.reuse(_jspx_th_fmt_message_2);
return false;
}
private boolean _jspx_meth_fmt_message_3(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_message_3 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _jspx_tagPool_fmt_message_key_nobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_message_3.setPageContext(_jspx_page_context);
_jspx_th_fmt_message_3.setParent(null);
_jspx_th_fmt_message_3.setKey("text.user.password");
int _jspx_eval_fmt_message_3 = _jspx_th_fmt_message_3.doStartTag();
if (_jspx_th_fmt_message_3.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_jspx_tagPool_fmt_message_key_nobody.reuse(_jspx_th_fmt_message_3);
return true;
}
_jspx_tagPool_fmt_message_key_nobody.reuse(_jspx_th_fmt_message_3);
return false;
}
private boolean _jspx_meth_fmt_message_4(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_message_4 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _jspx_tagPool_fmt_message_key_nobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_message_4.setPageContext(_jspx_page_context);
_jspx_th_fmt_message_4.setParent(null);
_jspx_th_fmt_message_4.setKey("text.selected.language");
int _jspx_eval_fmt_message_4 = _jspx_th_fmt_message_4.doStartTag();
if (_jspx_th_fmt_message_4.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_jspx_tagPool_fmt_message_key_nobody.reuse(_jspx_th_fmt_message_4);
return true;
}
_jspx_tagPool_fmt_message_key_nobody.reuse(_jspx_th_fmt_message_4);
return false;
}
private boolean _jspx_meth_fmt_message_5(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_message_5 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _jspx_tagPool_fmt_message_key_nobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_message_5.setPageContext(_jspx_page_context);
_jspx_th_fmt_message_5.setParent(null);
_jspx_th_fmt_message_5.setKey("text.norelogin");
int _jspx_eval_fmt_message_5 = _jspx_th_fmt_message_5.doStartTag();
if (_jspx_th_fmt_message_5.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_jspx_tagPool_fmt_message_key_nobody.reuse(_jspx_th_fmt_message_5);
return true;
}
_jspx_tagPool_fmt_message_key_nobody.reuse(_jspx_th_fmt_message_5);
return false;
}
private boolean _jspx_meth_fmt_message_6(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_message_6 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _jspx_tagPool_fmt_message_key_nobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_message_6.setPageContext(_jspx_page_context);
_jspx_th_fmt_message_6.setParent(null);
_jspx_th_fmt_message_6.setKey("text.remember");
int _jspx_eval_fmt_message_6 = _jspx_th_fmt_message_6.doStartTag();
if (_jspx_th_fmt_message_6.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_jspx_tagPool_fmt_message_key_nobody.reuse(_jspx_th_fmt_message_6);
return true;
}
_jspx_tagPool_fmt_message_key_nobody.reuse(_jspx_th_fmt_message_6);
return false;
}
private boolean _jspx_meth_fmt_message_7(PageContext _jspx_page_context)
throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
// fmt:message
org.apache.taglibs.standard.tag.rt.fmt.MessageTag _jspx_th_fmt_message_7 = (org.apache.taglibs.standard.tag.rt.fmt.MessageTag) _jspx_tagPool_fmt_message_key_nobody.get(org.apache.taglibs.standard.tag.rt.fmt.MessageTag.class);
_jspx_th_fmt_message_7.setPageContext(_jspx_page_context);
_jspx_th_fmt_message_7.setParent(null);
_jspx_th_fmt_message_7.setKey("button.label.login");
int _jspx_eval_fmt_message_7 = _jspx_th_fmt_message_7.doStartTag();
if (_jspx_th_fmt_message_7.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
_jspx_tagPool_fmt_message_key_nobody.reuse(_jspx_th_fmt_message_7);
return true;
}
_jspx_tagPool_fmt_message_key_nobody.reuse(_jspx_th_fmt_message_7);
return false;
}
}