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

📄 head_005farticleform_jsp.java

📁 一、数据库登录名:blog 密码:blog 二、首页应该运行log.jsp页面。其用户名:aa 密码:aaaa
💻 JAVA
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.ArrayList;
import java.util.List;

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

  private static java.util.Vector _jspx_dependants;

  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=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");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<title>\r\n");
      out.write("head_articleForm\r\n");
      out.write("</title>\r\n");
      out.write("</head>\r\n");
      out.write("<script language=\"javascript\" type=\"text/javascript\" src=\"JS/ArticleAdd.js\"></script>\r\n");
      out.write("\r\n");
      OperationDB.operation operation = null;
      synchronized (session) {
        operation = (OperationDB.operation) _jspx_page_context.getAttribute("operation", PageContext.SESSION_SCOPE);
        if (operation == null){
          operation = new OperationDB.operation();
          _jspx_page_context.setAttribute("operation", operation, PageContext.SESSION_SCOPE);
          out.write('\r');
          out.write('\n');
        }
      }
      out.write('\r');
      out.write('\n');
      Tool.Chinese Chinese = null;
      synchronized (_jspx_page_context) {
        Chinese = (Tool.Chinese) _jspx_page_context.getAttribute("Chinese", PageContext.PAGE_SCOPE);
        if (Chinese == null){
          Chinese = new Tool.Chinese();
          _jspx_page_context.setAttribute("Chinese", Chinese, PageContext.PAGE_SCOPE);
          out.write('\r');
          out.write('\n');
        }
      }
      out.write('\r');
      out.write('\n');
      Tool.MyPagination p = null;
      synchronized (session) {
        p = (Tool.MyPagination) _jspx_page_context.getAttribute("p", PageContext.SESSION_SCOPE);
        if (p == null){
          p = new Tool.MyPagination();
          _jspx_page_context.setAttribute("p", p, PageContext.SESSION_SCOPE);
          out.write('\r');
          out.write('\n');
        }
      }
      out.write("\r\n");
      out.write("<body bgcolor=\"#ffffff\">\r\n");

ActionForm.ConsumerActionForm caf=(ActionForm.ConsumerActionForm)session.getAttribute("form");
 String id=request.getParameter("id");
 ActionForm.articleActionForm af=operation.findArticle2(Integer.valueOf(id));

 String str=(String)request.getParameter("Page");
 int Page=1;
 List l=null;
 if(str==null){
  l=operation.findRestore(Integer.valueOf(af.getId()));
  int pagesize=3;
  l=p.getInitPage(l,Page,pagesize);
 }
 else{
   Page=p.getPage(str);
   l=p.getAppointPage(Page);
 }
 
      out.write('\r');
      out.write('\n');

 ArrayList list=operation.findArticle(Integer.valueOf(id));
 for(int i=0;i<list.size();i++){
 ActionForm.articleActionForm aaf=(ActionForm.articleActionForm)list.get(i);
 
      out.write('\r');
      out.write('\n');
      out.write(' ');

  out.println("<p align=left>&nbsp;&nbsp;&nbsp;&nbsp;<img src=myimage/icon.gif width=10 height=10 alt=''>&nbsp;&nbsp;"+aaf.getTitle()+"</p>");

      out.write("\r\n");
      out.write("<table width=\"390\" border=\"1\" align=\"center\" cellpadding=\"1\" cellspacing=\"1\" bordercolor=\"#FFFFFF\" bgcolor=\"#fece62\">\r\n");
      out.write("        <tr>\r\n");
      out.write("          <td valign=\"top\" bgcolor=\"#FFFFFF\">&nbsp;&nbsp;&nbsp;");
      out.print(aaf.getContent());
      out.write("</td>\r\n");
      out.write("        </tr>\r\n");
      out.write("</table>\r\n");
      out.write("\t  <table width=\"373\"  border=\"0\" align=\"center\">\r\n");
      out.write("        <tr>\r\n");
      out.write("          <td align=\"right\">&nbsp;");
      out.print(aaf.getPhTime());
      out.write("|&nbsp;阅读(");
      out.print(aaf.getNumber());
      out.write(")&nbsp;|&nbsp;回复(");
      out.print(operation.findRestore(Integer.valueOf(aaf.getId())).size());
      out.write(")</td>\r\n");
      out.write("        </tr>\r\n");
      out.write("</table>\r\n");
}
      out.write("\r\n");
      out.write("\t  <table width=\"373\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("        <tr>\r\n");
      out.write("          <td height=\"36\" align=\"right\"><div align=\"center\"><a href=\"main.jsp\"><img src=\"myimage/back.gif\" width=\"51\" height=\"20\" alt=\"\"></a></div></td>\r\n");
      out.write("        </tr>\r\n");
      out.write("</table>\r\n");

 if(p.getRecordSize()>0){
  for(int i=0;i<l.size();i++){
  ActionForm.restoreActionForm raf=(ActionForm.restoreActionForm)l.get(i);
  String recontent=java.net.URLDecoder.decode(raf.getReContent(), "UTF-8");


      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t  <table width=\"390\"  border=\"1\" align=\"center\" cellpadding=\"1\" cellspacing=\"1\" bordercolor=\"#FFFFFF\" bgcolor=\"#9A9EC5\">\r\n");
      out.write("        <tr>\r\n");
      out.write("          <td width=\"50\" bgcolor=\"#FFFFFF\">题目:</td>\r\n");
      out.write("          <td width=\"335\" bgcolor=\"#FFFFFF\">");
      out.print(raf.getReTitle());
      out.write("</td>\r\n");
      out.write("        </tr>\r\n");
      out.write("        <tr>\r\n");
      out.write("          <td bgcolor=\"#FFFFFF\">内容:</td>\r\n");
      out.write("          <td bgcolor=\"#FFFFFF\">");
      out.print(recontent);
      out.write("</td>\r\n");
      out.write("        </tr>\r\n");
      out.write("        <tr>\r\n");
      out.write("          <td colspan=\"2\" bgcolor=\"#FFFFFF\"><div align=\"right\">回复人:");
      out.print(operation.findName(Integer.valueOf(raf.getReAccount())));
      out.write("</div></td>\r\n");
      out.write("        </tr>\r\n");
      out.write("</table>\r\n");
}
 out.print(p.printCtrl(Page,id));
}
      out.write("\r\n");
      out.write("\t  <form name=\"form\" method=\"post\" action=\"addrestoreAction.do?sign=9\"  onSubmit=\"return addrestore()\">\r\n");
      out.write("\t  <table width=\"390\"  border=\"1\" align=\"center\" cellpadding=\"1\" cellspacing=\"1\" bordercolor=\"#FFFFFF\" bgcolor=\"#000000\">\r\n");
      out.write("        <tr>\r\n");
      out.write("          <td width=\"88\" bgcolor=\"#FFFFFF\">回复主题:\r\n");
      out.write("         </td>\r\n");
      out.write("          <td width=\"183\" bgcolor=\"#FFFFFF\"><input name=\"reTitle\" type=\"text\" class=\"inputinput\" size=\"26\"></td>\r\n");
      out.write("        </tr>\r\n");
      out.write("        <tr>\r\n");
      out.write("          <td height=\"139\" bgcolor=\"#FFFFFF\">回复内容:</td>\r\n");
      out.write("          <td bgcolor=\"#FFFFFF\"><textarea name=\"reContent\" rows=\"10\" class=\"inputinput\" cols=\"28\"></textarea></td>\r\n");
      out.write("        </tr>\r\n");
      out.write("        <tr>\r\n");
      out.write("          <td bgcolor=\"#FFFFFF\">回&nbsp;复&nbsp;人:</td>\r\n");
      out.write("          <td bgcolor=\"#FFFFFF\"><input name=\"articleId\" type=\"hidden\" size=\"26\" value=\"");
      out.print(af.getId());
      out.write("\"><input name=\"accountId\" type=\"hidden\" size=\"26\" value=\"");
      out.print(caf.getId());
      out.write('"');
      out.write('>');
      out.print(caf.getName());
      out.write("</td>\r\n");
      out.write("        </tr>\r\n");
      out.write("      </table>\r\n");
      out.write("\t   <table width=\"284\"  border=\"0\" align=\"center\">\r\n");
      out.write("         <tr>\r\n");
      out.write("           <td>\r\n");
      out.write("             <div align=\"center\">\r\n");
      out.write("  <input type=\"image\" class=\"inputinputinput\" src=\"myimage/save.gif\">\r\n");
      out.write("&nbsp;&nbsp;<a href=\"\"><img src=\"myimage/reset.gif\" width=\"51\" height=\"20\" alt=\"\" /></a></div></td>\r\n");
      out.write("         </tr>\r\n");
      out.write("       </table>\r\n");
      out.write("</form>\r\n");
      out.write("\r\n");
      out.write("</body>\r\n");
      out.write("</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);
    }
  }
}

⌨️ 快捷键说明

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