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

📄 info_005fcontent_005fmore_jsp.java

📁 这是我上次报java培训时
💻 JAVA
字号:
package org.apache.jsp.web_005fpage.info_005fall.info;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import jinLing.pub.*;
import jinLing.info.*;

public final class info_005fcontent_005fmore_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=gb2312");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			"../../pub_include/ErrPage.jsp", 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(" ");
request.setCharacterEncoding("gb2312");
      out.write(" \r\n");
      out.write(" ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "../../pub_include/pub_function_javascript.html", out, true);
      out.write("  \r\n");
      out.write(" \r\n");
      out.write("<HTML><HEAD><TITLE>  \r\n");
      out.write("荆州市荆州公安局 \r\n");
      out.write("</TITLE>\r\n");
      out.write("<META http-equiv=Content-Type content=\"text/html; charset=gb2312\">\r\n");
      out.write("\r\n");
      out.write("<STYLE type=text/css>\r\n");
      out.write("TD {\r\n");
      out.write("\tFONT-SIZE: 14px; LINE-HEIGHT: 22px; TEXT-DECORATION: none\r\n");
      out.write("}\r\n");
      out.write("LI {\r\n");
      out.write("\tFONT-SIZE: 12px\r\n");
      out.write("}\r\n");
      out.write("INPUT {\r\n");
      out.write("\tFONT-SIZE: 12px\r\n");
      out.write("}\r\n");
      out.write("SELECT {\r\n");
      out.write("\tFONT-SIZE: 12px\r\n");
      out.write("}\r\n");
      out.write(".unnamed1 {\r\n");
      out.write("\tFONT-SIZE: 12px; LINE-HEIGHT: 20px\r\n");
      out.write("}\r\n");
      out.write(".bd {\r\n");
      out.write("\tBORDER-RIGHT: #bc0021 1px solid; BORDER-TOP: #bc0021 1px solid; BORDER-LEFT: #bc0021 1px solid; BORDER-BOTTOM: #bc0021 1px solid\r\n");
      out.write("}\r\n");
      out.write("A:link {\r\n");
      out.write("\tCOLOR: #000000\r\n");
      out.write("}\r\n");
      out.write("A:visited {\r\n");
      out.write("\tCOLOR: #000000\r\n");
      out.write("}\r\n");
      out.write("A:active {\r\n");
      out.write("\tCOLOR: #999999\r\n");
      out.write("}\r\n");
      out.write("A:hover {\r\n");
      out.write("\tCOLOR: #999999\r\n");
      out.write("}\r\n");
      out.write(".bg2 {\r\n");
      out.write("\tBACKGROUND-POSITION: 50% bottom; BACKGROUND-IMAGE: url(images/sjtg_051230_05.gif); BACKGROUND-REPEAT: repeat-x\r\n");
      out.write("}\r\n");
      out.write(".style1 {\r\n");
      out.write("\tfont-size: 24px;\r\n");
      out.write("\tfont-weight: bold;\r\n");
      out.write("}\r\n");
      out.write("</STYLE>\r\n");
 
  String INFO_TYPE = request.getParameter("INFO_TYPE").toString();
  Collection col = null;
  Hashtable list = new Hashtable(); 
  list.put("INFO_TYPE",INFO_TYPE);
 // PubOp pubOp = new PubOp("INFO"); 
 Info info =new Info();
//判断增加修改
  String optype = "1";
  if(null != request.getParameter("optype") && !request.getParameter("optype").toString().equals(""))
    optype=request.getParameter("optype").toString(); 

      out.write(" \r\n");
      out.write("<META content=\"MSHTML 6.00.2800.1528\" name=GENERATOR></HEAD>\r\n");
      out.write("<BODY bgColor=#ffffff leftMargin=0 topMargin=0 marginwidth=\"0\" marginheight=\"0\">\r\n");
      out.write("<TABLE cellSpacing=0 cellPadding=0 width=778 align=center border=0>\r\n");
      out.write("  <TBODY>\r\n");
      out.write("  <TR>\r\n");
      out.write("    <TD height=95 colspan=\"3\">\r\n");
      out.write("      <object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"778\" height=\"102\">\r\n");
      out.write("        <param name=\"movie\" value=\"/source/head.swf\">\r\n");
      out.write("        <param name=\"quality\" value=\"high\">\r\n");
      out.write("        <embed src=\"/source/head.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"778\" height=\"102\"></embed>\r\n");
      out.write("      </object></TD>\r\n");
      out.write("    </TR>\r\n");
      out.write("  <TR>\r\n");
      out.write("    <TD width=\"109\" height=460 background=../../../source/sjtg_051230_04.gif>&nbsp; </TD>\r\n");
      out.write("    <TD width=\"669\" \r\n");
      out.write("    colSpan=2 vAlign=top background=../../../source/sjtg_051230_05.gif class=bg2>\r\n");
      out.write("      <TABLE cellSpacing=0 cellPadding=0 width=\"98%\" align=center>\r\n");
      out.write("        <TBODY>\r\n");
      out.write("        <TR>\r\n");
      out.write("          <TD vAlign=top background=../../../source/sjtg_051230_05.gif \r\n");
      out.write("          height=400>\r\n");
      out.write("\t\t  <br>\r\n");
      out.write("\t\t          <table width='100%' border='0' style='border-collapse: collapse; padding-left:5' bordercolor='#6595D6' cellpadding='0' cellspacing='0'> \r\n");

  String pPageNo = "1"; 
  if (null != request.getParameter("PAGENO") &&!request.getParameter("PAGENO").toString().trim().equals("")) 
     if (Integer.parseInt(request.getParameter("PAGENO"))<1) 
       pPageNo="1"; 
  else 
     pPageNo=request.getParameter("PAGENO"); 
  col = info.execSel(list);
  String pPageCount = String.valueOf(info.getRecordcount());
  String allCount = pPageCount; 
  pPageCount = (Integer.parseInt(pPageCount)%5==0)?String.valueOf(Integer.parseInt(pPageCount)/5):String.valueOf(Integer.parseInt(pPageCount)/5+1);
  if (Integer.parseInt(pPageCount)<Integer.parseInt(pPageNo))
    pPageNo=pPageCount;
  Iterator it = col.iterator();
  while (it.hasNext())
   {
     Hashtable rs = (Hashtable) it.next();

      out.write("\r\n");
      out.write("          <tr class='table_list_lr' height=\"25\"> \r\n");
      out.write("            <td     align=\"left\"  > <IMG src=\"../../../source/tb2.gif\">\r\n");
      out.write("\t\t\t");

			if(INFO_TYPE.equals("8"))
			{
			
      out.write("\r\n");
      out.write("\t\t\t<a href=\"info_receive.jsp?INFO_ID=");
      out.print(rs.get("INFO_ID"));
      out.write("\" target=\"_blank\">\r\n");
      out.write("\t\t\t");

			}
			else
			{
			
      out.write("\r\n");
      out.write("\t\t\t<a href=\"info_content.jsp?INFO_ID=");
      out.print(rs.get("INFO_ID"));
      out.write("\" target=\"_blank\">\r\n");
      out.write("\t\t\t");
 
              } 
             
      out.write("\r\n");
      out.write("\t\t\t");
      out.print(rs.get("INFO_CONTENT"));
      out.write("\r\n");
      out.write("\t\t\t </a>             </td>\r\n");
      out.write("         </tr>\r\n");
      out.write(" ");
 
   } 

      out.write(" \r\n");
      out.write("     </table> \r\n");
      out.write("\t</TD>\r\n");
      out.write("        </TR>\r\n");
      out.write("        <TR>\r\n");
      out.write("          <TD vAlign=top>\r\n");
      out.write("            <DIV \r\n");
      out.write("            align=center>                           </DIV></TD></TR></TBODY></TABLE></TD></TR>\r\n");
      out.write("  <TR>\r\n");
      out.write("    <TD vAlign=top colSpan=3 height=8><IMG \r\n");
      out.write("      src=\"../../../source/sjtg_051230_07.gif\" width=778></TD></TR></TBODY></TABLE>\r\n");
      out.write("<TABLE cellSpacing=0 cellPadding=0 width=778 align=center border=0>\r\n");
      out.write("  <TBODY>\r\n");
      out.write("  <TR align=middle>\r\n");
      out.write("    <TD><IMG height=1 src=\"\" width=450></TD></TR>\r\n");
      out.write("  <TR align=middle>\r\n");
      out.write("    <TD>\r\n");
      out.write("      <TABLE cellSpacing=2 cellPadding=0 width=\"100%\" border=0>\r\n");
      out.write("        <TBODY>\r\n");
      out.write("        <TR>\r\n");
      out.write("          <TD class=unnamed1><div align=\"center\"><STRONG>荆州市荆州公安局版权所有</STRONG></div></TD>\r\n");
      out.write("        <TR>\r\n");
      out.write("          <TD class=unnamed1>&nbsp;</TD>\r\n");
      out.write("          </TR></TBODY></TABLE>\r\n");
      out.write("\t\t  </TD></TR></TBODY></TABLE>\r\n");
      out.write("</BODY></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 + -