⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 login_jsp.java

📁 一个简单的java web项目 基于servlet构建
💻 JAVA
字号:
package org.apache.jsp;

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 java.util.List _jspx_dependants;

  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fform_005fnamespace_005fname_005fmethod_005fid_005faction;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fif_005ftest;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _005fjspx_005ftagPool_005fs_005fform_005fnamespace_005fname_005fmethod_005fid_005faction = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fs_005fif_005ftest = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
  }

  public void _jspDestroy() {
    _005fjspx_005ftagPool_005fs_005fform_005fnamespace_005fname_005fmethod_005fid_005faction.release();
    _005fjspx_005ftagPool_005fs_005fif_005ftest.release();
    _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody.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");

	String cpath=request.getContextPath();

      out.write("\r\n");
      out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n");
      out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n");
      out.write("<head><title>\r\n");
      out.write("\t用户登录 - 佳锐呼叫中心系统\r\n");
      out.write("</title></head>\r\n");
      out.write("<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"");
      out.print(cpath);
      out.write("/style/login_new.css\" />\r\n");
      out.write("<script language=\"JavaScript\">\r\n");
      out.write("function subTest(){\r\n");
      out.write("\tvar trueName = document.form1.trueName.value;\r\n");
      out.write("\tvar pass = document.form1.pass.value;\r\n");
      out.write("\tif(trueName.equals(\"\")){\r\n");
      out.write("\t        alert(\"请输入用户名\");\r\n");
      out.write("\t        form1.trueName.focus();\r\n");
      out.write("\t        return false;\r\n");
      out.write("\t}else if(pass.equals(\"\")){\r\n");
      out.write("\t    alert(\"请输入密码\");\r\n");
      out.write("\t    form1.pass.focus();\r\n");
      out.write("\t    return false;\r\n");
      out.write("\t}\r\n");
      out.write("\tdocument.form1.submit();\r\n");
      out.write("}\r\n");
      out.write("\t\r\n");
      out.write("</script>\r\n");
      out.write("<body>\r\n");
      out.write("\t<div id=\"mainWrap\"><div id=\"main\">\r\n");
      out.write("\t\t<div id=\"header\">\r\n");
      out.write("\t\t\t<a href=\"http://www.aresoft.cn/\" target=\"_blank\">佳锐科技官方网站</a>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t<div id=\"loginBox\">\r\n");
      if (_jspx_meth_s_005fform_005f0(_jspx_page_context))
        return;
      out.write("\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t<div id=\"banner\"></div>\r\n");
      out.write("\t\t<div id=\"featureBox\">\r\n");
      out.write("\t\t\t<ul id=\"featureList\">\r\n");
      out.write("\t\t\t\t<li id=\"feature1\">\r\n");
      out.write("\t\t\t\t\t<h3>专业且敬业</h3>\r\n");
      out.write("\t\t\t\t\t<p>多年的呼叫中心专业研发实施经验,敬业的客户服务以及优秀的用户口碑</p>\r\n");
      out.write("\t\t\t\t</li>\r\n");
      out.write("\t\t\t\t<li id=\"feature2\">\r\n");
      out.write("\t\t\t\t\t<h3>完备的系统且易用</h3>\r\n");
      out.write("\t\t\t\t\t<p>针对呼叫中心各项应用模块的完备系统,人性化的UI设计非常易于使用</p>\r\n");
      out.write("\t\t\t\t</li>\r\n");
      out.write("\t\t\t\t<li id=\"feature3\">\r\n");
      out.write("\t\t\t\t\t<h3>性能优越且稳定</h3>\r\n");
      out.write("\t\t\t\t\t<p>对系统各方面接口的性能优化,以完备的性能测试及压力测试保证系统的稳定性</p>\r\n");
      out.write("\t\t\t\t</li>\r\n");
      out.write("\t\t\t\t<li id=\"feature4\">\r\n");
      out.write("\t\t\t\t\t<h3>软电话控件下载</h3>\r\n");
      out.write("\t\t\t\t\t<p>点击下载</p>\r\n");
      out.write("\t\t\t\t</li>\r\n");
      out.write("\t\t\t</ul>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t</div></div>\r\n");
      out.write("<!--页脚开始-->\r\n");
      out.write("\t<div id=\"footerWrap\"><div id=\"footer\"><div id=\"footerInner\">\r\n");
      out.write("\t\t<div id=\"cpyWrap\">\r\n");
      out.write("\t\t\t上海佳锐科技\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t<div id=\"istn\"></div>\r\n");
      out.write("\t</div></div></div>\r\n");
      out.write("<!--页脚结束-->\r\n");
      if (_jspx_meth_s_005fif_005f0(_jspx_page_context))
        return;
      out.write("\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_s_005fform_005f0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  s:form
    org.apache.struts2.views.jsp.ui.FormTag _jspx_th_s_005fform_005f0 = (org.apache.struts2.views.jsp.ui.FormTag) _005fjspx_005ftagPool_005fs_005fform_005fnamespace_005fname_005fmethod_005fid_005faction.get(org.apache.struts2.views.jsp.ui.FormTag.class);
    _jspx_th_s_005fform_005f0.setPageContext(_jspx_page_context);
    _jspx_th_s_005fform_005f0.setParent(null);
    _jspx_th_s_005fform_005f0.setId("formLogin");
    _jspx_th_s_005fform_005f0.setAction("login");
    _jspx_th_s_005fform_005f0.setNamespace("");
    _jspx_th_s_005fform_005f0.setMethod("post");
    _jspx_th_s_005fform_005f0.setName("form1");
    int _jspx_eval_s_005fform_005f0 = _jspx_th_s_005fform_005f0.doStartTag();
    if (_jspx_eval_s_005fform_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      if (_jspx_eval_s_005fform_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
        out = _jspx_page_context.pushBody();
        _jspx_th_s_005fform_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
        _jspx_th_s_005fform_005f0.doInitBody();
      }
      do {
        out.write("\t\t\t\r\n");
        out.write("\t<div class=\"jueForm\">\r\n");
        out.write("\t\t<div class=\"jueFormItem\">\r\n");
        out.write("\t\t\t<label class=\"jueFormLabel\" for=\"txtUserLoginName\">用户名</label>\r\n");
        out.write("\t\t\t<div class=\"jueFormEl\">\r\n");
        out.write("\t\t\t\t<input class=\"jueFormTxt\" type=\"text\" id=\"txtUserLoginName\" name=\"user.trueName\"/>\r\n");
        out.write("\t\t\t</div>\r\n");
        out.write("\t\t</div>\r\n");
        out.write("\t\t<div class=\"jueFormItem\">\r\n");
        out.write("\t\t\t<label class=\"jueFormLabel\" for=\"txtPassword\">密码</label>\r\n");
        out.write("\t\t\t<div class=\"jueFormEl\">\r\n");
        out.write("\t\t\t\t<input class=\"jueFormTxt\" type=\"password\" id=\"txtPassword\" name=\"user.pass\"/>\r\n");
        out.write("\t\t\t</div>\r\n");
        out.write("\t\t</div>\r\n");
        out.write("\t\t<div class=\"jueFormItem\">\r\n");
        out.write("\t\t\t<div id=\"btnLoginW\">\r\n");
        out.write("\t\t\t\t<span id=\"LoginBox1_btnLogin\" class=\"jueBtnWrap\"><span class=\"jueBtn\"><span class=\"jueBtnInner\"><button class=\"jueBtnBtn\" type=\"Submit\"><span class=\"jueBtnIcon\"></span><span class=\"jueBtnText\" style=\"cursor:hand\">登录</span></button></span></span></span>\r\n");
        out.write("\t\t\t</div>\r\n");
        out.write("\t\t</div>\r\n");
        out.write("\t</div>\r\n");
        out.write("\t<input name=\"LoginBox1$cookieUserName\" type=\"hidden\" id=\"LoginBox1_cookieUserName\" />\r\n");
        int evalDoAfterBody = _jspx_th_s_005fform_005f0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
      if (_jspx_eval_s_005fform_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
        out = _jspx_page_context.popBody();
      }
    }
    if (_jspx_th_s_005fform_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fs_005fform_005fnamespace_005fname_005fmethod_005fid_005faction.reuse(_jspx_th_s_005fform_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fs_005fform_005fnamespace_005fname_005fmethod_005fid_005faction.reuse(_jspx_th_s_005fform_005f0);
    return false;
  }

  private boolean _jspx_meth_s_005fif_005f0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  s:if
    org.apache.struts2.views.jsp.IfTag _jspx_th_s_005fif_005f0 = (org.apache.struts2.views.jsp.IfTag) _005fjspx_005ftagPool_005fs_005fif_005ftest.get(org.apache.struts2.views.jsp.IfTag.class);
    _jspx_th_s_005fif_005f0.setPageContext(_jspx_page_context);
    _jspx_th_s_005fif_005f0.setParent(null);
    _jspx_th_s_005fif_005f0.setTest("errorCode.length()>0");
    int _jspx_eval_s_005fif_005f0 = _jspx_th_s_005fif_005f0.doStartTag();
    if (_jspx_eval_s_005fif_005f0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      if (_jspx_eval_s_005fif_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
        out = _jspx_page_context.pushBody();
        _jspx_th_s_005fif_005f0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out);
        _jspx_th_s_005fif_005f0.doInitBody();
      }
      do {
        out.write("\r\n");
        out.write("\t\r\n");
        out.write("\t<script type=\"text/javascript\">\r\n");
        out.write("\t\talert('");
        if (_jspx_meth_s_005fproperty_005f0(_jspx_th_s_005fif_005f0, _jspx_page_context))
          return true;
        out.write("');\r\n");
        out.write("\r\n");
        out.write("\t\tvar para=document.getElementById('flag').value;\r\n");
        out.write("\t\tif(para==3){\r\n");
        out.write("\t\t\talert(\"连续三次登陆不成功将关闭窗口!\");\r\n");
        out.write("\t\t\twindow.close();\r\n");
        out.write("\t\t}\r\n");
        out.write("\t</script>\r\n");
        out.write("\t\r\n");
        int evalDoAfterBody = _jspx_th_s_005fif_005f0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
      if (_jspx_eval_s_005fif_005f0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
        out = _jspx_page_context.popBody();
      }
    }
    if (_jspx_th_s_005fif_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fs_005fif_005ftest.reuse(_jspx_th_s_005fif_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fs_005fif_005ftest.reuse(_jspx_th_s_005fif_005f0);
    return false;
  }

  private boolean _jspx_meth_s_005fproperty_005f0(javax.servlet.jsp.tagext.JspTag _jspx_th_s_005fif_005f0, PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  s:property
    org.apache.struts2.views.jsp.PropertyTag _jspx_th_s_005fproperty_005f0 = (org.apache.struts2.views.jsp.PropertyTag) _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody.get(org.apache.struts2.views.jsp.PropertyTag.class);
    _jspx_th_s_005fproperty_005f0.setPageContext(_jspx_page_context);
    _jspx_th_s_005fproperty_005f0.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_s_005fif_005f0);
    _jspx_th_s_005fproperty_005f0.setValue("errorCode");
    int _jspx_eval_s_005fproperty_005f0 = _jspx_th_s_005fproperty_005f0.doStartTag();
    if (_jspx_th_s_005fproperty_005f0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
      _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody.reuse(_jspx_th_s_005fproperty_005f0);
      return true;
    }
    _005fjspx_005ftagPool_005fs_005fproperty_005fvalue_005fnobody.reuse(_jspx_th_s_005fproperty_005f0);
    return false;
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -