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

📄 _login2__jsp.java

📁 学生学籍管理信息系统 jsp+javabean+servlet
💻 JAVA
字号:
/*
 * JSP generated by Resin-3.0.8 (built Tue, 08 Jun 2004 02:25:40 PDT)
 */

package _jsp;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
import java.sql.*;

public class _login2__jsp extends com.caucho.jsp.JavaPage{
  private boolean _caucho_isDead;
  
  public void
  _jspService(javax.servlet.http.HttpServletRequest request,
              javax.servlet.http.HttpServletResponse response)
    throws java.io.IOException, javax.servlet.ServletException
  {
    javax.servlet.http.HttpSession session = request.getSession(true);
    com.caucho.server.webapp.Application _jsp_application = _caucho_getApplication();
    javax.servlet.ServletContext application = _jsp_application;
    com.caucho.jsp.PageContextImpl pageContext = com.caucho.jsp.QJspFactory.allocatePageContext(this, _jsp_application, request, response, null, session, 8192, true);
    javax.servlet.jsp.JspWriter out = pageContext.getOut();
    javax.servlet.ServletConfig config = getServletConfig();
    javax.servlet.Servlet page = this;
    response.setContentType("text/html;charset=GB2312");
    request.setCharacterEncoding("GB2312");
    try {
      out.write(_jsp_string0, 0, _jsp_string0.length);
      
    //\u83b7\u53d6\u63d0\u4ea4\u7684\u59d3\u540d\uff1a
    String n=request.getParameter("username");
          if(n==null)  {n="";}     
     //\u83b7\u53d6\u63d0\u4ea4\u7684\u5bc6\u7801\uff1a
    String p=request.getParameter("userpwd");
          if(p==null)  {p=""; }
    Connection con=null;//\u5b9a\u4e49\u8fde\u63a5\u6570\u636e\u5e93\u7684\u53d8\u91cf
    Statement sql=null;//\u5b9a\u4e49\u6267\u884cSQL\u64cd\u4f5c\u7684\u53d8\u91cf
    ResultSet rs=null;//\u5b9a\u4e49\u201c\u6e38\u6807\u201d\u53d8\u91cf
    try{Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); }
       catch(ClassNotFoundException event){}
   try {con=DriverManager.getConnection("jdbc:odbc:cj1");
       sql=con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY);
       //\u8fd4\u56de\u53ef\u6eda\u52a8\u7684\u7ed3\u679c\u96c6\uff1a
       String mySQL1;
       mySQL1="SELECT * FROM user_table where username='"+n+"' and userpwd='"+p+"'";  
       rs=sql.executeQuery(mySQL1);
       //\u5c06\u6e38\u6807\u79fb\u52a8\u5230\u6700\u540e\u4e00\u884c\uff1a
       rs.last();
       //\u83b7\u53d6\u6700\u540e\u4e00\u884c\u7684\u884c\u53f7\uff1a
       int flag=rs.getRow();
       if(flag>0)
          response.sendRedirect("default.htm");//\u8f6c\u5230default.htm\u7f51\u9875\u7a0b\u5e8f
       else
         out.print("\u767b\u5f55\u5931\u8d25\uff0c\u8bf7\u91cd\u65b0\u5f00\u59cb\u3002");
     }
    catch(SQLException event)
     {out.print("\u767b\u5f55\u5931\u8d25\uff0c\u8bf7\u91cd\u65b0\u5f00\u59cb\u3002"); }
 
      out.write(_jsp_string1, 0, _jsp_string1.length);
    } catch (java.lang.Throwable _jsp_e) {
      pageContext.handlePageException(_jsp_e);
    } finally {
      com.caucho.jsp.QJspFactory.freePageContext(pageContext);
    }
  }

  private com.caucho.java.LineMap _caucho_line_map;
  private java.util.ArrayList _caucho_depends = new java.util.ArrayList();

  public java.util.ArrayList _caucho_getDependList()
  {
    return _caucho_depends;
  }

  public void _caucho_addDepend(com.caucho.make.PersistentDependency depend)
  {
    super._caucho_addDepend(depend);
    _caucho_depends.add(depend);
  }

  public boolean _caucho_isModified()
  {
    if (_caucho_isDead)
      return true;
    if (com.caucho.util.CauchoSystem.getVersionId() != 1174304630)
      return true;
    for (int i = _caucho_depends.size() - 1; i >= 0; i--) {
      com.caucho.make.Dependency depend;
      depend = (com.caucho.make.Dependency) _caucho_depends.get(i);
      if (depend.isModified())
        return true;
    }
    return false;
  }

  public long _caucho_lastModified()
  {
    return 0;
  }

  public com.caucho.java.LineMap _caucho_getLineMap()
  {
    return _caucho_line_map;
  }

  public void destroy()
  {
      _caucho_isDead = true;
      super.destroy();
  }

  public void init(com.caucho.java.LineMap lineMap,
                   com.caucho.vfs.Path appDir)
    throws javax.servlet.ServletException
  {
    com.caucho.vfs.Path resinHome = com.caucho.util.CauchoSystem.getResinHome();
    com.caucho.vfs.MergePath mergePath = new com.caucho.vfs.MergePath();
    mergePath.addMergePath(appDir);
    mergePath.addMergePath(resinHome);
    com.caucho.loader.DynamicClassLoader loader;
    loader = (com.caucho.loader.DynamicClassLoader) getClass().getClassLoader();
    String resourcePath = loader.getResourcePathSpecificFirst();
    mergePath.addClassPath(resourcePath);
    _caucho_line_map = new com.caucho.java.LineMap("_login2__jsp.java", "foo");
    _caucho_line_map.add("/login2.jsp", 5, 30);
    com.caucho.vfs.Depend depend;
    depend = new com.caucho.vfs.Depend(appDir.lookup("login2.jsp"), "8tvYqUY53UBFm7Ep+ikGww==", false);
    _caucho_depends.add(depend);
  }

  private final static char []_jsp_string1;
  private final static char []_jsp_string0;
  static {
    _jsp_string1 = "\r\n</FONT>\r\n</BODY>\r\n</HTML>".toCharArray();
    _jsp_string0 = "\r\n\r\n<HTML>\r\n<BODY>\r\n  ".toCharArray();
  }
}

⌨️ 快捷键说明

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