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

📄 _superlog__jsp.java

📁 一套大型Office网络办公系统
💻 JAVA
字号:
/*
 * JSP generated by Resin 2.0.3 (built Wed Oct 17 10:11:08 PDT 2001)
 */

import java.io.*;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class _superlog__jsp extends com.caucho.jsp.JavaPage{
  private boolean _caucho_isDead;

  public String getServletInfo() { return "database handler"; }
  
  public void
  _jspService(javax.servlet.http.HttpServletRequest request,
              javax.servlet.http.HttpServletResponse response)
    throws java.io.IOException, javax.servlet.ServletException
  {
    com.caucho.jsp.QPageContext pageContext = (com.caucho.jsp.QPageContext) com.caucho.jsp.QJspFactory.create().getPageContext(this, request, response, null, true, 8192, true);
    javax.servlet.jsp.JspWriter out = (javax.servlet.jsp.JspWriter) pageContext.getOut();
    javax.servlet.ServletConfig config = getServletConfig();
    javax.servlet.Servlet page = this;
    javax.servlet.http.HttpSession session = pageContext.getSession();
    javax.servlet.ServletContext application = pageContext.getServletContext();
    response.setContentType("text/html;charset=gb2312");
    request.setCharacterEncoding("GB2312");
    try {
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string1, 0, _jsp_string1.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string2, 0, _jsp_string2.length);
      test.bbsreg reg;
      reg = (test.bbsreg) pageContext.getAttribute("reg");
      if (reg == null) {
        reg = new test.bbsreg();
        pageContext.setAttribute("reg", reg);
      }
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      test.bbsboard board;
      board = (test.bbsboard) pageContext.getAttribute("board");
      if (board == null) {
        board = new test.bbsboard();
        pageContext.setAttribute("board", board);
      }
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      String B1=request.getParameter("B1");boolean yesorno;String strSQL,whereTo,tempSTR;java.sql.ResultSet sqlRst;String tt,sel,boardname,boardmaster,masterpwd;int i,boardid;byte[] tmpbyte;tt=request.getParameter("tt");if (tt==null) {  tt="";}
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      if (B1!=null){session.putValue("superlogin","false");boardmaster=request.getParameter("boardmaster");masterpwd=request.getParameter("masterpwd");tempSTR=request.getParameter("boardid");boardid=java.lang.Integer.parseInt(tempSTR);boardmaster=boardmaster.trim();masterpwd=masterpwd.trim();whereTo="";if ((boardmaster==null)||(masterpwd==null)) { tt="username or password is empty,please login again!" ;whereTo="superlog.jsp?tt="+tt;}else{   tmpbyte=boardmaster.getBytes("ISO8859_1");   boardmaster=new String(tmpbyte);    if (board.checkBoardMaster(boardid,boardmaster,masterpwd)){   //'正确登录        session.putValue("superlogin","true");        whereTo="bbslist.jsp?method=8&boardid="+boardid;   }else {        tt="username or password is wrong!!!";         whereTo="superlog.jsp?tt="+tt;   }}//end if boardmast=null masterpwd==null
      pageContext.write(_jsp_string3, 0, _jsp_string3.length);
      out.print((whereTo));
      pageContext.write(_jsp_string4, 0, _jsp_string4.length);
      }  //'END IF b1
      pageContext.write(_jsp_string5, 0, _jsp_string5.length);
      if (B1==null){
      pageContext.write(_jsp_string6, 0, _jsp_string6.length);
      out.print((tt));
      pageContext.write(_jsp_string7, 0, _jsp_string7.length);
      sqlRst=board.listBoard(1);i=1;while (sqlRst.next()) {  if (i==1) {    sel="selected";  }else{    sel="";  }boardid=sqlRst.getInt("boardid");boardname=sqlRst.getString("boardname");
      pageContext.write(_jsp_string8, 0, _jsp_string8.length);
      out.print((boardid));
      pageContext.write(_jsp_string9, 0, _jsp_string9.length);
      out.print((sel));
      pageContext.write(_jsp_string10, 0, _jsp_string10.length);
      out.print((boardname));
      pageContext.write(_jsp_string11, 0, _jsp_string11.length);
             i++;}  //end whilesqlRst.close();
      pageContext.write(_jsp_string12, 0, _jsp_string12.length);
      }
      pageContext.write(_jsp_string13, 0, _jsp_string13.length);
    } catch (java.lang.Throwable _jsp_e) {
      pageContext.handlePageException(_jsp_e);
    } finally {
      JspFactory.getDefaultFactory().releasePageContext(pageContext);
    }
  }

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

  public boolean _caucho_isModified()
  {
    if (_caucho_isDead)
      return true;
    if (com.caucho.util.CauchoSystem.getVersionId() != 2058990000)
      return true;
    for (int i = _caucho_depends.size() - 1; i >= 0; i--) {
      com.caucho.vfs.Depend depend;
      depend = (com.caucho.vfs.Depend) _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);
    mergePath.addClassPath(getClass().getClassLoader());
    _caucho_line_map = new com.caucho.java.LineMap("_superlog__jsp.java", "d:\\guestbook\\jsp-access\\superlog.jsp");
    _caucho_line_map.add("/superlog.jsp", 1, 1);
    _caucho_line_map.add("/incdb.jsp", 2, 1);
    _caucho_line_map.add("/superlog.jsp", 1, 35);
    _caucho_line_map.add("/incdb.jsp", 2, 38);
    _caucho_line_map.add("d:\\guestbook\\jsp-access\\superlog.jsp", 4, 44);
    _caucho_line_map.add(5, 51);
    _caucho_line_map.add(6, 58);
    _caucho_line_map.add(19, 84);
    _caucho_line_map.add(49, 142);
    _caucho_line_map.add(52, 144);
    _caucho_line_map.add(104, 146);
    _caucho_line_map.add(111, 148);
    _caucho_line_map.add(115, 150);
    _caucho_line_map.add(128, 176);
    _caucho_line_map.add(128, 178);
    _caucho_line_map.add(128, 180);
    _caucho_line_map.add(129, 182);
    _caucho_line_map.add(145, 192);
    com.caucho.vfs.Depend depend;
    depend = new com.caucho.vfs.Depend(mergePath.lookup("file:/d:/guestbook/jsp-access/incdb.jsp"), 972283860000L, 251L);
    _caucho_depends.add(depend);
    depend = new com.caucho.vfs.Depend(mergePath.lookup("file:/d:/guestbook/jsp-access/superlog.jsp"), 1006577124000L, 4014L);
    _caucho_depends.add(depend);
  }

  private static byte []_jsp_string7;
  private static byte []_jsp_string6;
  private static byte []_jsp_string2;
  private static byte []_jsp_string4;
  private static byte []_jsp_string11;
  private static byte []_jsp_string8;
  private static byte []_jsp_string5;
  private static byte []_jsp_string12;
  private static byte []_jsp_string13;
  private static byte []_jsp_string3;
  private static byte []_jsp_string1;
  private static byte []_jsp_string0;
  private static byte []_jsp_string9;
  private static byte []_jsp_string10;
  static {
    try {
      _jsp_string7 = "\r\n                <br>\r\n                <p align=\"center\">\r\n                <select size=\"1\" name=\"boardid\">        \r\n".getBytes("GB2312");
      _jsp_string6 = "\r\n<!--------------------------------------------------------------->\r\n<div align=\"center\">\r\n  <center>\r\n<table border=\"1\" width=\"400\" bordercolorlight=\"#FFFFFF\" bordercolordark=\"#000000\" cellspacing=\"0\" cellpadding=\"0\">\r\n  <tr>\r\n    <td width=\"100%\">\r\n      <form method=\"POST\" action=\"superlog.jsp\" onSubmit=\"return check_input(this)\" name=\"form1\">".getBytes("GB2312");
      _jsp_string2 = "\r\n<!--导入结束-->\r\n".getBytes("GB2312");
      _jsp_string4 = "\";\r\n</script>  \r\n\r\n".getBytes("GB2312");
      _jsp_string11 = "</option>         \r\n".getBytes("GB2312");
      _jsp_string8 = "         \r\n          <option value=\"".getBytes("GB2312");
      _jsp_string5 = "\r\n\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<meta name=\"GENERATOR\" content=\"Microsoft FrontPage 4.0\">\r\n<meta name=\"ProgId\" content=\"FrontPage.Editor.Document\">\r\n<title>论坛管理</title>\r\n<link rel=\"stylesheet\" type=\"text/css\" href=\"css/css02.css\">\r\n<script Language=\"JavaScript\">\r\n<!--\r\nfunction isspacestring(mystring)\r\n//是否为空格字符串;true为空,FALSE为非空\r\n{ var istring=mystring;\r\n  var temp,i,strlen;\r\n  temp=true;\r\n  strlen=istring.length;\r\n  for (i=0;i<strlen;i++)\r\n  {\r\n    if ((istring.substring(i,i+1)!=\" \")&(temp))\r\n     { temp=false;  }\r\n  }\r\n return temp;\r\n}\r\n\r\nfunction check_input(theForm)\r\n{\r\n\r\n      if ((theForm.boardmaster.value == \"\")|(isspacestring(theForm.boardmaster.value)))\r\n      {\r\n        alert(\"请输入用户名.\");\r\n        theForm.boardmaster.focus();\r\n        return (false);\r\n      }\r\n      \r\n      if ((theForm.masterpwd.value == \"\")|(isspacestring(theForm.masterpwd.value)))\r\n\r\n      {\r\n        alert(\"请输入密码.\");\r\n        theForm.masterpwd.focus();\r\n        return (false);\r\n      }\r\n\r\n       return (true);\r\n}\r\n-->\r\n</script>\r\n\r\n</head>\r\n\r\n<body>\r\n<br><br>\r\n".getBytes("GB2312");
      _jsp_string12 = "</select>\r\n        <p align=\"center\">用户:<input type=\"text\" name=\"boardmaster\" size=\"20\"></p> \r\n        <p align=\"center\">密码:<input type=\"password\" name=\"masterpwd\" size=\"20\"></p> \r\n        <p align=\"center\"><input class=\"buttonface\" type=\"submit\" value=\"确定\" name=\"B1\">  \r\n        <input class=\"buttonface\" type=\"reset\" value=\"重写\" name=\"B2\"></p> \r\n      </form> \r\n    </td> \r\n  </tr> \r\n</table> \r\n  </center> \r\n</div> \r\n<!---------------------------------------------------------------> \r\n".getBytes("GB2312");
      _jsp_string13 = "\r\n\r\n</body> \r\n</html> \r\n".getBytes("GB2312");
      _jsp_string3 = "\r\n<script language=\"JavaScript\">\r\n     window.location=\"".getBytes("GB2312");
      _jsp_string1 = "<!--开始导入packages-->\r\n".getBytes("GB2312");
      _jsp_string0 = "\r\n".getBytes("GB2312");
      _jsp_string9 = "\" ".getBytes("GB2312");
      _jsp_string10 = ">".getBytes("GB2312");
    } catch (java.io.UnsupportedEncodingException e) {
      e.printStackTrace();
    }
  }
}

⌨️ 快捷键说明

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