_zhongzhi__jsp.java
来自「公司企业网站管理系统中文豪华版」· Java 代码 · 共 233 行 · 第 1/2 页
JAVA
233 行
/*
* JSP generated by Resin-3.0.19 (built Mon, 15 May 2006 04:50:47 PDT)
*/
package _jsp;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
import java.sql.*;
import mfkvit.*;
import java.util.*;
public class _zhongzhi__jsp extends com.caucho.jsp.JavaPage{
private boolean _caucho_isDead;
int pageSize =6;//\u6bcf\u9875\u663e\u793a\u7684\u8bb0\u5f55
int pageCount = 0;//\u603b\u9875\u6570
int showPage =1;//\u5f53\u524d\u663e\u793a\u7684\u9875\u6570
public void
_jspService(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException, javax.servlet.ServletException
{
javax.servlet.http.HttpSession session = request.getSession(true);
com.caucho.server.webapp.Application _jsp_application = _caucho_getApplication();
javax.servlet.ServletContext application = _jsp_application;
com.caucho.jsp.PageContextImpl pageContext = com.caucho.jsp.QJspFactory.allocatePageContext(this, _jsp_application, request, response, "/errorpage.jsp", session, 8192, true, false);
javax.servlet.jsp.JspWriter out = pageContext.getOut();
javax.servlet.ServletConfig config = getServletConfig();
javax.servlet.Servlet page = this;
response.setContentType("text/html; charset=gb2312");
request.setCharacterEncoding("GB2312");
try {
out.write(_jsp_string0, 0, _jsp_string0.length);
out.print((WebSiteParams.getParamValue("BsEnLinkman")));
out.write(_jsp_string1, 0, _jsp_string1.length);
pageContext.include("top_index.jsp", true);
out.write(_jsp_string2, 0, _jsp_string2.length);
request.setCharacterEncoding("gb2312");int m=0;
try{
JdbcBean dbutil = new JdbcBean();
String condition="select * from CPmessage ORDER BY id desc";
int rowcount = dbutil.execQueryName(condition);
ArrayList al = dbutil.getRS();
for(int i=0;i<rowcount;i++){
HashMap colValue = (HashMap)al.get(i);
m++;
if(m>7) {break;}
out.write(_jsp_string3, 0, _jsp_string3.length);
out.print(((String)colValue.get("id")));
out.write(_jsp_string4, 0, _jsp_string4.length);
out.print(((String)colValue.get("cpmc")));
out.write(_jsp_string5, 0, _jsp_string5.length);
}
out.write(_jsp_string6, 0, _jsp_string6.length);
} catch (Exception ex) {ex.printStackTrace();}
out.write(_jsp_string7, 0, _jsp_string7.length);
request.setCharacterEncoding("gb2312");
try{
JdbcBean dbutil = new JdbcBean();
int rowcount = dbutil.execQueryName("select * from cpfw");
ArrayList al = dbutil.getRS();
for(int i=0;i<rowcount;i++){
HashMap colValue = (HashMap)al.get(i);
out.write(_jsp_string8, 0, _jsp_string8.length);
out.print(((String)colValue.get("nr")));
out.write(_jsp_string9, 0, _jsp_string9.length);
}
} catch (Exception ex) {ex.printStackTrace();}
out.write(_jsp_string10, 0, _jsp_string10.length);
request.setCharacterEncoding("gb2312"); int j=-1;
String condition="select * from CPmessage";
JdbcBean dbutil = new JdbcBean();
int lastRow = dbutil.execQueryName(condition);
ArrayList al = dbutil.getRS();
pageCount = (lastRow % pageSize == 0) ? (lastRow / pageSize) : (lastRow / pageSize + 1);//\u56fa\u5b9a\u7b97\u6cd5
String go1=request.getParameter("page");
if(go1==null)
{ go1="1";
}
try{
showPage=Integer.parseInt(go1);
}
catch(NumberFormatException e){
showPage=1;
}
if(showPage<=1)//\u8f93\u5165\u7684\u9875\u6570\u5c0f\u4e8e\u5219\u663e\u793a\u7b2c\u4e00\u9875
{ showPage=1;
}
if(showPage>=pageCount)//\u8f93\u5165\u7684\u9875\u6570\u5927\u4e8e\u603b\u9875\u6570\u5219\u663e\u793a\u6700\u540e\u4e00\u9875
{ showPage=pageCount;
}
int posion=(showPage-1)*pageSize;
out.write(_jsp_string11, 0, _jsp_string11.length);
for(int i=posion;i<posion+pageSize && i<lastRow;i++)
{ HashMap colValue = (HashMap)al.get(i);
String t = (String)colValue.get("img"); j++;
if(j%3==0){
out.write(_jsp_string12, 0, _jsp_string12.length);
}
out.write(_jsp_string13, 0, _jsp_string13.length);
out.print(((String)colValue.get("id")));
out.write(_jsp_string14, 0, _jsp_string14.length);
out.print((t));
out.write(_jsp_string15, 0, _jsp_string15.length);
out.print(((String)colValue.get("id")));
out.write(_jsp_string16, 0, _jsp_string16.length);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?