package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import com.beans.*;
public final class showNews_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.List _jspx_dependants;
public Object 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("<html>\r\n");
out.write("<head>\r\n");
out.write("<title>showNews</title>\r\n");
out.write("</head>\r\n");
com.beans.PaginationBean news = null;
synchronized (request) {
news = (com.beans.PaginationBean) _jspx_page_context.getAttribute("news", PageContext.REQUEST_SCOPE);
if (news == null){
news = new com.beans.PaginationBean();
_jspx_page_context.setAttribute("news", news, PageContext.REQUEST_SCOPE);
}
}
out.write('\r');
out.write('\n');
org.apache.jasper.runtime.JspRuntimeLibrary.introspect(_jspx_page_context.findAttribute("news"), request);
out.write("\r\n");
out.write("<body bgcolor=\"#ffffff\">\r\n");
ArrayList<News> newsInfo = (ArrayList) news.getNewsInfo();
for (int i = 0; i < newsInfo.size(); i++) {
pageContext.setAttribute("info", newsInfo.get(i));
out.write('\r');
out.write('\n');
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${info.newsTitle}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write(" \r\n");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${info.newsAuthor}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write(" \r\n");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${info.newsTime}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("<br>\r\n");
}
out.write("\r\n");
out.write("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"95%\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td><a href=\"index.jsp?page=1\">首页</a></td>\r\n");
out.write(" <td><a href=\"index.jsp?page=");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${(news.page-1)<1?1:(news.page-1)}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\">上一页</a></td>\r\n");
out.write(" <td><a href=\"index.jsp?page=");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${(news.page+1)>(news.lastpage)?news.lastpage:(news.page+1)}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\">下一页</a></td>\r\n");
out.write(" <td><a href=\"index.jsp?page=");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${news.lastpage}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write("\">末页</a></td>\r\n");
out.write(" <td> 共有\r\n");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${news.lastpage}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write(" 页\r\n");
out.write(" </td>\r\n");
out.write(" <td>\r\n");
out.write(" 每页<select name=\"perpage\" onchange=\"window.location='index.jsp?perpage='+this.value;\">\r\n");
out.write(" <option value=\"10\" ");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${((news.perpage==10)?\"selected\":\"\")}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write(">10</option>\r\n");
out.write(" <option value=\"15\" ");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${((news.perpage==15)?\"selected\":\"\")}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write(">15</option>\r\n");
out.write(" <option value=\"20\" ");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${((news.perpage==20)?\"selected\":\"\")}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write(">20</option>\r\n");
out.write(" <option value=\"30\" ");
out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${((news.perpage==30)?\"selected\":\"\")}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
out.write(">30</option>\r\n");
out.write(" </select>条\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write("</table>\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);
}
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
jsp数据分页 jb
共88个文件
java~1~:11个
class:10个
java~2~:7个
需积分: 9 11 下载量 150 浏览量
2008-06-17
17:46:24
上传
评论
收藏 548KB RAR 举报
温馨提示
jb 开发 jsp+sql<br> 用 jb 可以直接打开 <br> 带sql数据库
资源推荐
资源详情
资源评论
收起资源包目录
分页.rar (88个子文件)
分页
分页
test_Data.MDF 1.25MB
driver.library 333B
bak
com
beans
PaginationBean.java~1~ 3KB
DBConnection.java~7~ 1KB
DBConnection.java~6~ 1KB
DBConnection.java~4~ 1KB
PaginationBean.java~2~ 3KB
DBConnection.java~2~ 1KB
News.java~1~ 1KB
DBConnection.java~5~ 1KB
DBConnection.java~1~ 1KB
DBConnection.java~3~ 1KB
PaginationBean.java~3~ 3KB
servlet
PaginationBean.java~1~ 3KB
PaginationBean.java~2~ 3KB
Index.java~1~ 1KB
DBConnection.java~2~ 1KB
News.java~2~ 1KB
News.java~1~ 1KB
DBConnection.java~1~ 1KB
DBConnection.java~3~ 1KB
PaginationBean.java~3~ 3KB
page
showNews.jsp~42~ 2KB
showNews.jsp~46~ 1KB
WEB-INF
web.xml~20~ 1KB
web.xml~25~ 662B
web.xml~18~ 1KB
web.xml~22~ 1KB
web.xml~26~ 1KB
web.xml~23~ 662B
web.xml~24~ 1KB
web.xml~19~ 662B
web.xml~17~ 1KB
web.xml~21~ 662B
showNews.jsp~41~ 2KB
showNews.jsp~43~ 1KB
showNews.jsp~49~ 1KB
showNews.jsp~40~ 1KB
showNews.jsp~44~ 2KB
showNews.jsp~48~ 1KB
showNews.jsp~47~ 1KB
showNews.jsp~45~ 1KB
showNews.jsp~39~ 1KB
pagination
beans
PaginationBean.java~1~ 3KB
PaginationBean.java~4~ 3KB
News.jbx~1~ 483B
PaginationBean.java~2~ 3KB
News.java~1~ 1KB
DBConnection.java~1~ 1KB
PaginationBean.jbx~1~ 263B
PaginationBean.java~3~ 3KB
servlet
Index.java~3~ 1KB
Index.java~2~ 1KB
Index.java~1~ 1KB
page
WEB-INF
web.xml 662B
classes
com
beans
News.class 2KB
PaginationBean.class 4KB
DBConnection.class 2KB
servlet
Index.class 2KB
lib
mssqlserver.jar 66KB
msbase.jar 280KB
msutil.jar 58KB
news.sql 509B
showNews.jsp 1KB
src
com
beans
PaginationBean.java 3KB
News.java 1KB
DBConnection.java 1KB
servlet
Index.java 1KB
pagination
servlet
分页.jpx 12KB
classes
package cache
com.servlet.dep2 2KB
com.beans.dep2 4KB
cache files
分页.index 4KB
com
beans
News.class 2KB
PaginationBean.class 4KB
DBConnection.class 2KB
servlet
Index.class 2KB
Generated Source
.jsp
page
org
apache
jsp
showNews_jsp.java 6KB
jsp cache
page
package cache
org.apache.jsp.dep2 3KB
org
apache
jsp
showNews_jsp.class 5KB
Tomcat
work
page
tldCache.ser 44B
SESSIONS.ser 81B
org
apache
jsp
showNews_jsp.class 6KB
showNews_jsp.java 6KB
webapps
Servlet.library 219B
分页.jpx.local 3KB
test_Log.LDF 1024KB
分页.jpx.local~ 2KB
分页.refactor 449B
共 88 条
- 1
资源评论
abcdrwl
- 粉丝: 9
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功