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

📄 dologon_jsp.java

📁 设备管理系统:三种管理员:普通员工、设备管理员、超级管理员。可进行设备添加删除维修等基本操作。运行此需要netbeans+sql2005
💻 JAVA
字号:
package org.apache.jsp;

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

public final class dologon_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.Vector _jspx_dependants;

  private org.apache.jasper.runtime.ResourceInjector _jspx_resourceInjector;

  public Object getDependants() {
    return _jspx_dependants;
  }

  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=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;
      _jspx_resourceInjector = (org.apache.jasper.runtime.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector");

      out.write('\n');
      dba.Logon mylogon = null;
      synchronized (_jspx_page_context) {
        mylogon = (dba.Logon) _jspx_page_context.getAttribute("mylogon", PageContext.PAGE_SCOPE);
        if (mylogon == null){
          mylogon = new dba.Logon();
          _jspx_page_context.setAttribute("mylogon", mylogon, PageContext.PAGE_SCOPE);
        }
      }
      out.write('\n');
  String username=request.getParameter("username");  if(username==null)	  username="";      username=new String(username.getBytes("ISO-8859-1"),"gbk");      System.out.println("用户名:"+username+"::"+(username.length()));  String userpassword=request.getParameter("userpassword");  if(userpassword==null)	  userpassword="";      userpassword=new String(userpassword.getBytes("ISO-8859-1"),"gbk");  mylogon.setUsername(username);  mylogon.setUserpassword(userpassword);
      out.write("\n");
      out.write("<html>\n");
      out.write("  <head>\n");
      out.write("    <title>用户安全登录</title>\n");
      out.write("    <link rel=\"stylesheet\" type=\"text/css\" href=\"css/style.css\">\n");
      out.write("  </head>\n");
      out.write("  <body>\n");
      out.write("   <center>\n");
      out.write("       <table style=\"margin-top:200\" width=\"250\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"black\" bordercolorlight=\"black\" bordercolordark=\"white\">\n");
      out.write("         <tr bgcolor=\"lightgrey\" height=\"30\">\n");
      out.write("            <td align=\"center\">登录状况</td>\n");
      out.write("         </tr>\n");
      out.write("         <tr height=\"50\">\n");
      out.write("            <td align=\"center\">\n");
      out.write("              ");
      out.print(mylogon.checklogon());
      out.write("\n");
      out.write("            </td>\n");
      out.write("         </tr>\n");
      out.write("       </table>\n");
      out.write("\n");
      out.write(" <a href=\"xitong.jsp\">[返回]</a>\n");
      out.write("\n");
      out.write("   </center>\n");
      out.write("  </body>\n");
      out.write("</html>\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 {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}

⌨️ 快捷键说明

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