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

📄 usermessage_jsp.java

📁 一个自己做的公司网站和办公职员管理系统。
💻 JAVA
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
import java.net.*;
import ws.woa.core.*;
import ws.woa.util.*;
import ws.woa.forum.*;

public class UserMessage_jsp extends HttpJspBase {


  private static java.util.Vector _jspx_includes;

  public java.util.List getIncludes() {
    return _jspx_includes;
  }

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

    JspFactory _jspxFactory = null;
    javax.servlet.jsp.PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=Shift_JIS");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");

/**
 * WOA 記事閲覧
 */

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n\r\n");
      ws.woa.forum.ForumBean forum = null;
      synchronized (request) {
        forum = (ws.woa.forum.ForumBean) pageContext.getAttribute("forum", PageContext.REQUEST_SCOPE);
        if (forum == null){
          try {
            forum = (ws.woa.forum.ForumBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "ws.woa.forum.ForumBean");
          } catch (ClassNotFoundException exc) {
            throw new InstantiationException(exc.getMessage());
          } catch (Exception exc) {
            throw new ServletException("Cannot create bean of class " + "ws.woa.forum.ForumBean", exc);
          }
          pageContext.setAttribute("forum", forum, PageContext.REQUEST_SCOPE);
        }
      }
      out.write("\r\n");
      ws.woa.forum.ForumContentBean content = null;
      synchronized (request) {
        content = (ws.woa.forum.ForumContentBean) pageContext.getAttribute("content", PageContext.REQUEST_SCOPE);
        if (content == null){
          try {
            content = (ws.woa.forum.ForumContentBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "ws.woa.forum.ForumContentBean");
          } catch (ClassNotFoundException exc) {
            throw new InstantiationException(exc.getMessage());
          } catch (Exception exc) {
            throw new ServletException("Cannot create bean of class " + "ws.woa.forum.ForumContentBean", exc);
          }
          pageContext.setAttribute("content", content, PageContext.REQUEST_SCOPE);
        }
      }
      out.write("\r\n\r\n");
      out.write("<SCRIPT LANGUAGE=\"JavaScript\">\r\n///////////////////////////////////////////////////////\r\n// 送信時のチェック\r\nfunction submitCheck(){\r\n  if(!checkNotEmpty('件名',document.Form1.Subject) ||\r\n     !checkBytes('件名',document.Form1.Subject,100)||\r\n     !checkNotEmpty('本文',document.Form1.Content)){\r\n     return false;\r\n  } else {\r\n   return confirm('登録します。よろしいですか?');\r\n  }\r\n}\r\n");
      out.write("</SCRIPT>\r\n\r\n");
      out.write("<h2>フォーラム");
      out.write("</h2>\r\n\r\n");
      out.write("<h3>");
      out.print( StrUtil.tagFilter(content.getSubject()) );
      out.write("</h3>\r\n");
      out.write("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("<tr>");
      out.write("<td>\r\n  投稿者:");
      out.print( StrUtil.tagFilter(content.getUserName()) );
      out.write("<br>\r\n  投稿日:");
      out.print( StrUtil.formatDate(content.getAddDate()) );
      out.write("\r\n");
      out.write("</td>");
      out.write("<td align=\"right\" valign=\"top\">\r\n  [ ");
      out.write("<a href=\"javascript:history.back();\">戻る");
      out.write("</a> ]\r\n");
      out.write("</td>");
      out.write("</tr>\r\n");
      out.write("</table>\r\n\r\n");
      out.write("<pre>\r\n");
      out.print( StrUtil.formFilter(content.getContent()) );
      out.write("\r\n");
      out.write("</pre>\r\n\r\n");
      out.write("<h3>この記事に返信");
      out.write("</h3>\r\n\r\n");
      out.write("<form name=\"Form1\" action=\"forum.module\" method=\"POST\"\r\n      onSubmit=\"return submitCheck()\">\r\n");
      out.write("<table border>\r\n");
      out.write("<tr>\r\n  ");
      out.write("<th width=\"100\">件名");
      out.write("</th>\r\n  ");
      out.write("<td>\r\n    ");
      out.write("<input type=\"text\" name=\"Subject\" size=\"40\"\r\n           value=\"");
      out.print( StrUtil.formFilter(content.getResponseSubject()) );
      out.write("\">\r\n  ");
      out.write("</td>\r\n");
      out.write("</tr>\r\n");
      out.write("<tr>\r\n  ");
      out.write("<th>本文");
      out.write("</th>\r\n  ");
      out.write("<td>\r\n    ");
      out.write("<textarea name=\"Content\"\r\n              cols=\"60\" rows=\"10\">");
      out.print( StrUtil.formFilter(content.getResponseContent()) );
      out.write("</textarea>\r\n  ");
      out.write("</td>\r\n");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      out.write("<br>\r\n");
      out.write("<input type=\"submit\" value=\"投 稿\">\r\n");
      out.write("<input type=\"reset\" value=\"リセット\">\r\n");
      out.write("<input type=\"hidden\" name=\"Action\" value=\"REGIST\">\r\n");
      out.write("<input type=\"hidden\" name=\"ParentID\" value=\"");
      out.print( content.getContentID() );
      out.write("\">\r\n");
      out.write("<input type=\"hidden\" name=\"ForumID\" value=\"");
      out.print( forum.getForumID() );
      out.write("\">\r\n");
      out.write("</form>\r\n");
    } catch (Throwable t) {
      out = _jspx_out;
      if (out != null && out.getBufferSize() != 0)
        out.clearBuffer();
      if (pageContext != null) pageContext.handlePageException(t);
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
    }
  }
}

⌨️ 快捷键说明

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