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

📄 newtopic_jsp.java

📁 一个oracle和JSP做的论坛
💻 JAVA
字号:
package org.apache.jsp;

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

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

  private static java.util.Vector _jspx_dependants;

  private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_c_if_var_test_scope;

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

  public void _jspInit() {
    _jspx_tagPool_c_if_var_test_scope = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
  }

  public void _jspDestroy() {
    _jspx_tagPool_c_if_var_test_scope.release();
  }

  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=GBK");
      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\n\r\n<html>\r\n<head>\r\n</head>\r\n<script language=\"javascript\">\r\n    function check(form)\r\n    {\r\n          if (form.title.value==\"\")\r\n          {\r\n            alert(\"请填写主题!\");\r\n            form.title.focus();\r\n            return false;\r\n          }\r\n\r\n          if (form.content.value==\"\")\r\n          {\r\n            alert(\"请填写内容!\");\r\n            form.content.focus();\r\n            return false;\r\n          }\r\n     }\r\n    </script>\r\n<body>\r\n<form name=\"form1\" method=\"post\" action=\"newtopicservlet\" onsubmit=\"return check(this)\" style=\"MARGIN-BOTTOM: 0px\">\r\n<table border=\"0\" width=\"99%\" align=\"center\" cellpadding=\"2\" cellspacing=\"1\" bgcolor=\"#A4B6D7\">\r\n  <tr>\r\n    <td width=\"100%\" height=\"25\" class=\"font10_5\" background=\"images/bbs_bg1.gif\">\r\n      <div align=\"center\">\r\n        <b>论 坛 话 题 发 布</b>\r\n      </div>\r\n    </td>\r\n  </tr>\r\n</table>\r\n<table width=\"99%\" border=\"0\" cellspacing=\"1\" cellpadding=\"2\" align=\"center\" bgcolor=\"#A4B6D7\">\r\n  <TR bgcolor=\"#F2F8FF\">\r\n    <TD width=\"16%\">\r\n      <div align=\"right\">主 题:</div>\r\n");
      out.write("    </TD>\r\n    <TD width=\"84%\">\r\n      <select name=\"zhuti\" id=\"zhiye\" style=\"width:50px\">\r\n        <option value=\"1\" selected>原创</option>\r\n        <option value=\"2\">转载</option>\r\n      </select>\r\n      <input name=\"title\" type=\"text\" size=\"55\" value=\"\">\r\n    </TD>\r\n  </TR>\r\n  <TR bgcolor=\"#F2F8FF\">\r\n    <TD width=\"16%\">\r\n      <div align=\"right\">内 容:</div>\r\n    </TD>\r\n    <TD width=\"84%\" height=\"300\">\r\n      <TEXTAREA type=\"input\" rows=10 cols=80 name=\"content\">      </textarea>\r\n    </TD>\r\n  </TR>\r\n  <TR bgcolor=\"#F2F8FF\">\r\n    <TD width=\"16%\">\r\n      <div align=\"right\">表 情:</div>\r\n    </TD>\r\n    <TD width=\"84%\">\r\n      <input type=radio name=ticon value=0.gif>\r\n      <img src=images/0.gif width=19 height=19>\r\n      <input type=radio name=ticon value=1.gif>\r\n      <img src=images/1.gif width=19 height=19>\r\n      <input type=radio name=ticon value=2.gif>\r\n      <img src=images/2.gif width=19 height=19>\r\n      <input type=radio name=ticon value=3.gif>\r\n      <img src=images/3.gif width=19 height=19>\r\n      <input type=radio name=ticon value=4.gif>\r\n");
      out.write("      <img src=images/4.gif width=19 height=19>\r\n      <input type=radio name=ticon value=5.gif>\r\n      <img src=images/5.gif width=19 height=19>\r\n      <input type=radio name=ticon value=6.gif>\r\n      <img src=images/6.gif width=19 height=19>\r\n      <input type=radio name=ticon value=7.gif>\r\n      <img src=images/7.gif width=19 height=19>\r\n      <input type=radio name=ticon value=8.gif>\r\n      <img src=images/8.gif width=19 height=19>\r\n      <br>\r\n      <input type=radio name=ticon value=9.gif>\r\n      <img src=images/9.gif width=19 height=19>\r\n      <input type=radio name=ticon value=10.gif>\r\n      <img src=images/10.gif width=19 height=19>\r\n      <input type=radio name=ticon value=11.gif>\r\n      <img src=images/11.gif width=19 height=19>\r\n      <input type=radio name=ticon value=12.gif>\r\n      <img src=images/12.gif width=19 height=19>\r\n      <input type=radio name=ticon value=13.gif>\r\n      <img src=images/13.gif width=19 height=19>\r\n      <input type=radio name=ticon value=14.gif>\r\n      <img src=images/14.gif width=19 height=19>\r\n");
      out.write("      <input type=radio name=ticon value=15.gif>\r\n      <img src=images/15.gif width=19 height=19>\r\n      <input type=radio name=ticon value=16.gif>\r\n      <img src=images/16.gif width=19 height=19>\r\n      <input type=radio name=ticon value=17.gif>\r\n      <img src=images/17.gif width=19 height=19>\r\n      <br>\r\n      <input type=radio name=ticon value=18.gif>\r\n      <img src=images/18.gif width=19 height=19>\r\n      <input type=radio name=ticon value=19.gif>\r\n      <img src=images/19.gif width=19 height=19>\r\n      <input type=radio name=ticon value=20.gif>\r\n      <img src=images/20.gif width=19 height=19>\r\n      <input type=radio name=ticon value=21.gif>\r\n      <img src=images/21.gif width=19 height=19>\r\n      <input type=radio name=ticon value=22.gif>\r\n      <img src=images/22.gif width=19 height=19>\r\n      <input type=radio name=ticon value=23.gif>\r\n      <img src=images/23.gif width=19 height=19>\r\n      <input type=radio name=ticon value=24.gif>\r\n      <img src=images/24.gif width=19 height=19>\r\n      <input type=radio name=ticon value=25.gif>\r\n");
      out.write("      <img src=images/25.gif width=19 height=19>\r\n      <input type=radio name=ticon value=26.gif>\r\n      <img src=images/26.gif width=19 height=19>\r\n      <br>\r\n      <input type=radio name=ticon value=27.gif>\r\n      <img src=images/27.gif width=19 height=19>\r\n      <input type=radio name=ticon value=28.gif>\r\n      <img src=images/28.gif width=19 height=19>\r\n      <input type=radio name=ticon value=29.gif>\r\n      <img src=images/29.gif width=19 height=19>\r\n      <input type=radio name=ticon value=30.gif>\r\n      <img src=images/30.gif width=19 height=19>\r\n      <input type=radio name=ticon value=31.gif>\r\n      <img src=images/31.gif width=19 height=19>\r\n      <input type=radio name=ticon value=32.gif>\r\n      <img src=images/32.gif width=19 height=19>\r\n      <input type=radio name=ticon value=33.gif>\r\n      <img src=images/33.gif width=19 height=19>\r\n      <input type=radio name=ticon value=34.gif>\r\n      <img src=images/34.gif width=19 height=19>\r\n      <input type=radio name=ticon value=35.gif>\r\n      <img src=images/35.gif width=19 height=19>\r\n");
      out.write("      <br>\r\n      <input type=radio name=ticon value=36.gif>\r\n      <img src=images/36.gif width=19 height=19>\r\n      <input type=radio name=ticon value=37.gif>\r\n      <img src=images/37.gif width=19 height=19>\r\n      <input type=radio name=ticon value=38.gif>\r\n      <img src=images/38.gif width=19 height=19>\r\n      <input type=radio name=ticon value=39.gif>\r\n      <img src=images/39.gif width=19 height=19>\r\n      <input type=radio name=ticon value=40.gif>\r\n      <img src=images/40.gif width=19 height=19>\r\n      <input type=radio name=ticon value=41.gif>\r\n      <img src=images/41.gif width=19 height=19>\r\n      <input type=radio name=ticon value=42.gif>\r\n      <img src=images/42.gif width=19 height=19>\r\n      <input type=radio name=ticon value=43.gif>\r\n      <img src=images/43.gif width=19 height=19>\r\n      <input type=radio name=ticon value=44.gif>\r\n      <img src=\" images/44.gif\" width=\"17\" height=\"16\">\r\n    </TD>\r\n  </TR>\r\n  ");
      if (_jspx_meth_c_if_0(_jspx_page_context))
        return;
      out.write("\r\n  <TR bgcolor=\"#F2F8FF\">\r\n    <TD height=\"35\" colspan=2 align=center>\r\n      <!--\r\n        <INPUT TYPE=\"hidden\" name=\"BoardID_1\" value=\"\">\r\n        <INPUT TYPE=\"hidden\" name=\"BoardID_2\" value=\"\">\r\n      -->\r\n      <input type=\"submit\" value=\"发布话题\" name=\"submit1\">\r\n      &nbsp;\r\n      <input type=\"reset\" value=\"全部重写\" name=\"B2\">\r\n    </TD>\r\n  </TR>\r\n</TABLE>\r\n</form>\r\n</body>\r\n</html>\r\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 {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }

  private boolean _jspx_meth_c_if_0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  c:if
    org.apache.taglibs.standard.tag.rt.core.IfTag _jspx_th_c_if_0 = (org.apache.taglibs.standard.tag.rt.core.IfTag) _jspx_tagPool_c_if_var_test_scope.get(org.apache.taglibs.standard.tag.rt.core.IfTag.class);
    _jspx_th_c_if_0.setPageContext(_jspx_page_context);
    _jspx_th_c_if_0.setParent(null);
    _jspx_th_c_if_0.setTest(((java.lang.Boolean) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${ins_state=='f'}", java.lang.Boolean.class, (PageContext)_jspx_page_context, null, false)).booleanValue());
    _jspx_th_c_if_0.setVar("result");
    _jspx_th_c_if_0.setScope("session");
    int _jspx_eval_c_if_0 = _jspx_th_c_if_0.doStartTag();
    if (_jspx_eval_c_if_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
      do {
        out.write("\r\n    <tr bgcolor=\"#F8F8F8\" align=center>\r\n      <TD colspan=2 height=\"10\" align=center>校验码错误!      </TD>\r\n    </tr>\r\n  ");
        int evalDoAfterBody = _jspx_th_c_if_0.doAfterBody();
        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
          break;
      } while (true);
    }
    if (_jspx_th_c_if_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
      return true;
    _jspx_tagPool_c_if_var_test_scope.reuse(_jspx_th_c_if_0);
    return false;
  }
}

⌨️ 快捷键说明

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