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

📄 login_jsp.java

📁 vb+java实现的图书管理系统
💻 JAVA
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;

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;

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.AnnotationProcessor _jsp_annotationprocessor;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
  }

  public void _jspDestroy() {
  }

  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;

      out.write('\r');
      out.write('\n');

String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

      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("  <head>\r\n");
      out.write("    <base href=\"");
      out.print(basePath);
      out.write("\">\r\n");
      out.write("    \r\n");
      out.write("    <title>用户登录</title>\r\n");
      out.write("    \r\n");
      out.write("\t<meta http-equiv=\"pragma\" content=\"no-cache\">\r\n");
      out.write("\t<meta http-equiv=\"cache-control\" content=\"no-cache\">\r\n");
      out.write("\t<meta http-equiv=\"expires\" content=\"0\">    \r\n");
      out.write("\t<meta http-equiv=\"keywords\" content=\"keyword1,keyword2,keyword3\">\r\n");
      out.write("\t<meta http-equiv=\"description\" content=\"This is my page\">\r\n");
      out.write("\t<!--\r\n");
      out.write("\t<link rel=\"stylesheet\" type=\"text/css\" href=\"styles.css\">\r\n");
      out.write("\t-->\r\n");
      out.write("\r\n");
      out.write("  </head>\r\n");
      out.write("  <SCRIPT Language = javascript>\r\n");
      out.write(" <!--\r\n");
      out.write(" function check_null(){\r\n");
      out.write("  if(document.frm_login.uid.value==\"\"){\r\n");
      out.write("     alert(\"请输入证件号!\");\r\n");
      out.write("     document.frm_login.uid.focus();\r\n");
      out.write("     return false;\r\n");
      out.write("  }\r\n");
      out.write("  else if(document.frm_login.upsw.value==\"\"){\r\n");
      out.write("     alert(\"请输入密码!\");\r\n");
      out.write("     document.frm_login.upsw.focus();\r\n");
      out.write("     return false;\r\n");
      out.write("  }\r\n");
      out.write("}\r\n");
      out.write("  -->\r\n");
      out.write("  </SCRIPT>\t\r\n");
      out.write("  <body>\r\n");
      out.write("    <DIV id=loginleft>\r\n");
      out.write("\t\t\t<FORM name=frm_login action=Login method=post>\r\n");
      out.write("\t\t\t\t<DL id=searchmain style=\"WIDTH: 100%\">\r\n");
      out.write("\t\t\t\t\t<DT>\r\n");
      out.write("\t\t\t\t\t<DT>\r\n");
      out.write("\t\t\t\t\t\t<B>登录我的图书馆</B>\r\n");
      out.write("\t\t\t\t\t<DT>\r\n");
      out.write("\t\t\t\t\t\t用户名:&nbsp;\r\n");
      out.write("\t\t\t\t\t\t<INPUT class=input name=uid id=uid>\r\n");
      out.write("\t\t\t\t\t<DT>\r\n");
      out.write("\t\t\t\t\t\t密&nbsp;&nbsp;&nbsp;码:&nbsp;&nbsp;\r\n");
      out.write("\t\t\t\t\t\t<INPUT class=input type=password name=upsw id=upsw>\r\n");
      out.write("\t\t\t\t\t<DT>\r\n");
      out.write("\t\t\t\t\t\t<INPUT type=submit value=登录 name=submit onClick=\"return check_null();\">\r\n");
      out.write("\t\t\t</FORM>\r\n");
      out.write("\t\t\t<DT>\r\n");
      out.write("\t\t\t\t&nbsp;&nbsp;&nbsp;\r\n");
      out.write("\t\t\t\t<FONT color=red></FONT>\r\n");
      out.write("\t\t\t<DT>\r\n");
      out.write("\t\t\t</DT>\r\n");
      out.write("\t\t\t</DL>\r\n");
      out.write("\t\t</DIV>\r\n");
      out.write("\t\t<DIV id=loginright>\r\n");
      out.write("\t\t\t<DIV class=mainHelp style=\"MARGIN-TOP: 8px\">\r\n");
      out.write("\t\t\t\t<STRONG><IMG alt=Hint src=\"images/pin_dark.gif\"> 提示 </STRONG>\r\n");
      out.write("\t\t\t\t<BR>\r\n");
      out.write("\t\t\t\t<UL style=\"list-style:circle\">\r\n");
      out.write("\t\t\t\t\t<LI>\r\n");
      out.write("\t\t\t\t\t\t读者可用以下用户名登录:\r\n");
      out.write("\t\t\t\t\t\t<BR>\r\n");
      out.write("\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;1.证件号:您的工号或者学号\r\n");
      out.write("\t\t\t\t\t<LI>\r\n");
      out.write("\t\t\t\t\t\t读者信息查询的初始密码可能情况:\r\n");
      out.write("\t\t\t\t\t\t<BR>\r\n");
      out.write("\t\t\t\t\t\t&nbsp;&nbsp;&nbsp;1.读者证件号\t\t\t\t\r\n");
      out.write("\t\t\t\t\t<LI>\r\n");
      out.write("\t\t\t\t\t\t密码在进入系统后可由读者重新设置\r\n");
      out.write("\t\t\t\t\t</LI>\r\n");
      out.write("\t\t\t\t</UL>\r\n");
      out.write("\t\t\t</DIV>\r\n");
      out.write("\t\t</DIV>\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)
          try { out.clearBuffer(); } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}

⌨️ 快捷键说明

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