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

📄 tf_005finfo_005flist_005ftu_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 tf_005finfo_005flist_005ftu_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>\r\n");
      out.write("<head>\r\n");
      out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"../../pub_include/hosc.css\">\r\n");
      out.write("<link href=\"../../pub_include/body_css.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\"> \r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("<!--\r\n");
      out.write("body {\r\n");
      out.write("\tbackground-color: #ffebbd;\r\n");
      out.write("}\r\n");
      out.write(".style2 {color: #000000}\r\n");
      out.write("a:link {\r\n");
      out.write("\ttext-decoration: none;\r\n");
      out.write("}\r\n");
      out.write("a:visited {\r\n");
      out.write("\ttext-decoration: none;\r\n");
      out.write("\tcolor: #000000;\r\n");
      out.write("}\r\n");
      out.write("a:hover {\r\n");
      out.write("\ttext-decoration: underline;\r\n");
      out.write("}\r\n");
      out.write("a:active {\r\n");
      out.write("\ttext-decoration: none;\r\n");
      out.write("\tcolor: #000000;\r\n");
      out.write("}\r\n");
      out.write("-->\r\n");
      out.write("</style></head> \r\n");
 
  String INFO_TYPE = request.getParameter("INFO_TYPE").toString();
  System.out.println(INFO_TYPE);
  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("<body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' background='../../images/bg.gif'   >\r\n");
      out.write("  <div align='center'>\r\n");
      out.write("  <center>\r\n");
      out.write("  <table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111' width=98% >\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td width='100%' height='0' valign='top' align='center'>\r\n");
      out.write("        <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"); 
   System.out.println("1111111");
    col = info.execSel(list,pPageNo,"5");
  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'> \r\n");
      out.write("            <td     align=\"left\"  > \r\n");
      out.write("\t\t\t<a href=\"info_content_tu.jsp?INFO_ID=");
      out.print(rs.get("INFO_ID"));
      out.write("\" target=\"_blank\">\r\n");
      out.write("\t\t\t<IMG  width=\"169\" height=\"121\" border=\"0\" src=\"../../../source/4/");
      out.print(rs.get("INFO_CONTENT"));
      out.write("\">\r\n");
      out.write("\t\t\t </a>             </td>\r\n");
      out.write("\t\t\t <td     align=\"left\"  >\r\n");
      out.write("\t\t\t <a href=\"info_content_tu.jsp?INFO_ID=");
      out.print(rs.get("INFO_ID"));
      out.write("\" target=\"_blank\"> \r\n");
      out.write("\t\t\t <span class=\"style2\"> &nbsp;&nbsp;");
      out.print(rs.get("INFO_REMARK"));
      out.write("</span>\r\n");
      out.write("\t\t\t </a> \r\n");
      out.write("\t\t\t  </td>\r\n");
      out.write("         </tr>\r\n");
      out.write(" ");
 
   } 

      out.write(" \r\n");
      out.write("     </table> \r\n");
      out.write("</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("    </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("</center> \r\n");
      out.write("</div> \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 + -