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

📄 about_jsp.java

📁 论坛源码
💻 JAVA
字号:
package org.apache.jsp.web.jsp;

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

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

  public String getServletInfo() {
    return "database handler";
  }

  private static java.util.Vector _jspx_dependants;

  static {
    _jspx_dependants = new java.util.Vector(1);
    _jspx_dependants.add("/web/jsp/incdb.jsp");
  }

  public java.util.List getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    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 {
      _jspxFactory = JspFactory.getDefaultFactory();
      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;

      out.write('\r');
      out.write('\n');
      out.write("<!--¿ªÊ¼µ¼Èëpackages-->\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<!--µ¼Èë½áÊø-->");
      out.write('\r');
      out.write('\n');
      twm.bbsuser user = null;
      synchronized (_jspx_page_context) {
        user = (twm.bbsuser) _jspx_page_context.getAttribute("user", PageContext.PAGE_SCOPE);
        if (user == null){
          user = new twm.bbsuser();
          _jspx_page_context.setAttribute("user", user, PageContext.PAGE_SCOPE);
        }
      }
      out.write('\r');
      out.write('\n');
      twm.bbsboard board = null;
      synchronized (_jspx_page_context) {
        board = (twm.bbsboard) _jspx_page_context.getAttribute("board", PageContext.PAGE_SCOPE);
        if (board == null){
          board = new twm.bbsboard();
          _jspx_page_context.setAttribute("board", board, PageContext.PAGE_SCOPE);
        }
      }
      out.write('\r');
      out.write('\n');

java.sql.ResultSet sqlRst; 
sqlRst=board.listBoard(7);

      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
      out.write("<title>首页</title>\r\n");
      out.write("<base target=\"rtop\">\r\n");
      out.write("\r\n");
      out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"bbs03.css\">\r\n");
      out.write("\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write("<p>\r\n");
      out.write("<p>\r\n");
      out.write("<div align=\"center\">\r\n");
      out.write("  <center>\r\n");
      out.write("  <table   bgcolor=\"#EFFFCE\" border=\"1\" width=\"600\" bordercolorlight=\"#000000\" cellspacing=\"0\" cellpadding=\"0\" bordercolordark=\"#FFFFFF\">    \r\n");
      out.write("    <tr>     \r\n");
      out.write("      <td width=\"100%\" bgcolor=\"#99CC66\">     \r\n");
      out.write("        <p align=\"center\"><font color=\"#FFFFFF\">积分规则</font></p>      </td>    \r\n");
      out.write("    </tr>    \r\n");
      out.write("    <tr>    \r\n");
      out.write("      <td width=\"100%\"> \r\n");
      out.write("        <table border=\"0\" width=\"100%\"> \r\n");
      out.write("          <tr> \r\n");
      out.write("            <td width=\"100%\">&nbsp;为了活跃本坛气氛,本坛采用积分制</td> \r\n");
      out.write("          </tr> \r\n");
      out.write("          <tr> \r\n");
      out.write("            <td width=\"100%\">     \r\n");
      out.write("        <ul>     \r\n");
      out.write("          <li>发新贴积分加2分;</li>    \r\n");
      out.write("          <li>跟贴加1分;</li>    \r\n");
      out.write("          <li>贴子被收入精分部分积分加3分</li>    \r\n");
      out.write("          <li>贴被删则积分扣3分。</li>    \r\n");
      out.write("          <li>回复超过20条以上或点击在50以上,版主即可将其加入精华区.</li>    \r\n");
      out.write("        </ul>    \r\n");
      out.write("        <p align=\"center\">            </td>\r\n");
      out.write("          </tr>\r\n");
      out.write("        </table>      </td>  \r\n");
      out.write("    </tr>  \r\n");
      out.write("    <tr>\r\n");
      out.write("      <td width=\"100%\" bgcolor=\"#99CC66\">\r\n");
      out.write("        <p align=\"center\"><font color=\"#FFFFFF\">本坛公告</font></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td width=\"100%\">\r\n");
      out.write("        <ul>\r\n");
      out.write(" 欢迎您参加交流和讨论,本站点为公共论坛,为维护网上公共秩序和社会稳定,请您自觉遵守以下条款:<br>\r\n");
      out.write("\r\n");
      out.write("<ol>一、不得利用本站危害国家安全、泄露国家秘密,不得侵犯国家社会集体的和公民的合法权益,不得利用本站制作、复制和传播下列信息: \r\n");
      out.write(" <li>煽动抗拒、破坏宪法和法律、行政法规实施的;</li>\r\n");
      out.write(" <li>煽动颠覆国家政权,推翻社会主义制度的;</li>\r\n");
      out.write(" <li>煽动分裂国家、破坏国家统一的;</li>\r\n");
      out.write(" <li>煽动民族仇恨、民族歧视,破坏民族团结的;</li>\r\n");
      out.write(" <li>捏造或者歪曲事实,散布谣言,扰乱社会秩序的;</li>\r\n");
      out.write(" <li>宣扬封建迷信、淫秽、色情、赌博、暴力、凶杀、恐怖、教唆犯罪的;</li>\r\n");
      out.write(" <li>公然侮辱他人或者捏造事实诽谤他人的,或者进行其他恶意攻击的;</li>\r\n");
      out.write(" <li>损害国家机关信誉的;</li>\r\n");
      out.write(" <li>其他违反宪法和法律行政法规的;</li>\r\n");
      out.write(" <li>进行商业广告行为的。</li><br>\r\n");
      out.write("二、互相尊重,对自己的言论和行为负责。<br>\r\n");
      out.write("三:论坛对网友所发帖子有使用权、删除权和修改权。</ol>\r\n");
      out.write("        </ul>      \r\n");
      out.write("        </td>       \r\n");
      out.write("    </tr>       \r\n");
      out.write("    <tr>       \r\n");
      out.write("      <td width=\"100%\" bgcolor=\"#99CC66\">       \r\n");
      out.write("        <p align=\"center\"><font color=\"#FFFFFF\">注意事项</font></td>      \r\n");
      out.write("    </tr>      \r\n");
      out.write("    <tr>      \r\n");
      out.write("      <td width=\"100%\">&nbsp;&nbsp;&nbsp;&nbsp;          \r\n");
      out.write("        大家可以随便“灌水”,但您在本坛注册发言便表示您将遵守以下条款:<br>         \r\n");
      out.write("        <ol>         \r\n");
      out.write("          <li>遵守中华人民共和国的一切法律法规;网友发表的观点与看法仅代表其个人,与本站无关。</li>         \r\n");
      out.write("          <li>本站有权对注册网友的账号进行管理。</li>         \r\n");
      out.write("        </ol>      </td>        \r\n");
      out.write("    </tr>        \r\n");
      out.write("  </table>      \r\n");
      out.write("  </center>      \r\n");
      out.write("</div>      \r\n");
      out.write("</body>   \r\n");
      out.write("</html> ");
    } 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 {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}

⌨️ 快捷键说明

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