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

📄 _adduserdoc__jsp.java

📁 用JSP写的论坛源代码 走过路过的各位千万不要错过啊!!!!
💻 JAVA
字号:
/*
 * JSP generated by Resin-3.0.7 (built Wed, 24 Mar 2004 04:28:45 PST)
 */

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

public class _adduserdoc__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);
      bbs.beans.dbcontact.ContactBean contact;
      contact = (bbs.beans.dbcontact.ContactBean) pageContext.getAttribute("contact");
      if (contact == null) {
        contact = new bbs.beans.dbcontact.ContactBean();
        pageContext.setAttribute("contact", contact);
      }
      out.write(_jsp_string0, 0, _jsp_string0.length);
      if(session.getAttribute("userid")==null)
  response.sendRedirect("login.htm");
  
  String boardid=request.getParameter("boardid");
  String parentid=request.getParameter("parentid");
  String childid=request.getParameter("childid");
  String pagenum=request.getParameter("pagenum");
  String tag="";
  
  Statement stm=contact.getStm();
  ResultSet rst=stm.executeQuery("select count(*) from userdoc where userid="+session.getAttribute("userid"));

   if(rst.next()&&rst.getInt(1)<10) 
    { stm.executeUpdate("insert into userdoc(userid,parentid,childid,boardid,pagenum) values("+session.getAttribute("userid")+","+parentid+","+childid+","+boardid+","+pagenum+")");
     tag="\u6dfb\u52a0\u6210\u529f\uff01";
     }
  else
  tag="\u5bf9\u4e0d\u8d77\u60a8\u7684\u6536\u85cf\u5939\u4ee5\u6ee1\uff01";
  
  stm.close();

      out.write(_jsp_string1, 0, _jsp_string1.length);
      out.print((tag));
      out.write(_jsp_string2, 0, _jsp_string2.length);
      stm.close();
    } 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() != 1174304629)
      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("_adduserdoc__jsp.java", "foo");
    _caucho_line_map.add("/adduserdoc.jsp", 2, 30);
    _caucho_line_map.add(3, 37);
    _caucho_line_map.add(39, 59);
    _caucho_line_map.add(49, 61);
    com.caucho.vfs.Depend depend;
    depend = new com.caucho.vfs.Depend(appDir.lookup("adduserdoc.jsp"), "MbhOmtSDmzpFlu59c/BKGg==", false);
    _caucho_depends.add(depend);
  }

  private final static char []_jsp_string2;
  private final static char []_jsp_string0;
  private final static char []_jsp_string1;
  static {
    _jsp_string2 = "</span></td>\r\n      </tr>\r\n      <tr>\r\n        <td height=\"24\" align=\"center\" valign=\"middle\" bgcolor=\"#E7F7D6\"><span class=\"style3\">[<a href=\"javaScript:window.close()\">\u5173\u95ed\u7a97\u53e3</a>]</span></td>\r\n      </tr>\r\n    </table></td>\r\n  </tr>\r\n</table>\r\n</body>\r\n</html>\r\n".toCharArray();
    _jsp_string0 = "\r\n".toCharArray();
    _jsp_string1 = "\r\n<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n<LINK href=\"css/cs1.css\" type=text/css rel=stylesheet>\r\n<title>\u52a0\u5165\u7528\u6237\u6536\u85cf\u5939</title>\r\n</head>\r\n\r\n<body>\r\n\r\n<table width=\"500\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n  <!--DWLayoutTable-->\r\n  <tr>\r\n    <td width=\"500\" height=\"107\" align=\"center\" valign=\"middle\"><table width=\"408\" height=\"43\" border=\"0\" cellspacing=\"1\" bgcolor=\"#FF6600\">\r\n      <!--DWLayoutTable-->\r\n      <tr>\r\n        <td width=\"644\" height=\"24\" align=\"center\" valign=\"middle\" bgcolor=\"#E7F7D6\" class=\"style5\">:)<span class=\"style9\">".toCharArray();
  }
}

⌨️ 快捷键说明

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