ajax、mysql、jstl实现分页、局部刷新界面

上传者: u010868987 | 上传时间: 2024-04-03 09:44:34 | 文件大小: 806KB | 文件类型: RAR
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 动漫搜索 <% //currentPage当前显示页数 if (request.getParameter("currentPage") == null||request.getParameter("currentPage").equals("")) { pageContext.setAttribute("currentPage", new Integer(0)); } else { pageContext.setAttribute("currentPage", request .getParameter("currentPage")); } %> select* from anime <% int perPageNum = Integer.parseInt((String) pageContext .getAttribute("PerPageNum")); int resultNum = Integer.parseInt((String) pageContext .getAttribute("resultNum")); int pageNum; //如果所有记录数除每页显示记录数没有余数-1 if((int)resultNum%perPageNum==0) pageNum = (int)(resultNum / perPageNum-1); else pageNum = (int)(resultNum / perPageNum); pageContext.setAttribute("pageNum", pageNum); %>
序号 热搜动漫 动漫简介 更新集数 搜索指数 动漫详情
${row.id } ${row.introduce} ${row.blues} ${row.times }
总共有${pageNum+1}页-第${currentPage+1}页-上一页 - 下一页

文件下载

资源详情

[{"title":"( 38 个子文件 806KB ) ajax、mysql、jstl实现分页、局部刷新界面","children":[{"title":"数据库文件","children":[{"title":"animeevalution.sql <span style='color:#111;'> 8.04KB </span>","children":null,"spread":false},{"title":"anime.sql <span style='color:#111;'> 3.03KB </span>","children":null,"spread":false},{"title":"anime2.sql <span style='color:#111;'> 3.50KB </span>","children":null,"spread":false},{"title":"animeintroduce.sql <span style='color:#111;'> 7.58KB </span>","children":null,"spread":false},{"title":"peopleintroduce.sql <span style='color:#111;'> 2.85KB </span>","children":null,"spread":false}],"spread":true},{"title":"first","children":[{"title":".settings","children":[{"title":"org.eclipse.wst.jsdt.ui.superType.name <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.project.facet.core.xml <span style='color:#111;'> 252B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.component <span style='color:#111;'> 453B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.jsdt.ui.superType.container <span style='color:#111;'> 49B </span>","children":null,"spread":false},{"title":".jsdtscope <span style='color:#111;'> 500B </span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 364B </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":null,"spread":false},{"title":".project <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false},{"title":"WebRoot","children":[{"title":"open.jsp <span style='color:#111;'> 6.44KB </span>","children":null,"spread":false},{"title":"evaluation.jsp <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"image","children":[{"title":"kenan.jpg <span style='color:#111;'> 14.71KB </span>","children":null,"spread":false},{"title":"lieren.jpg <span style='color:#111;'> 11.88KB </span>","children":null,"spread":false},{"title":"eat.jpg <span style='color:#111;'> 14.44KB </span>","children":null,"spread":false},{"title":"image.jpg <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"onepiece.jpg <span style='color:#111;'> 23.94KB </span>","children":null,"spread":false},{"title":"juren.jpg <span style='color:#111;'> 6.57KB </span>","children":null,"spread":false},{"title":"naruto.jpg <span style='color:#111;'> 11.64KB </span>","children":null,"spread":false},{"title":"yaojing.jpg <span style='color:#111;'> 22.83KB </span>","children":null,"spread":false},{"title":"sishen.jpg <span style='color:#111;'> 10.66KB </span>","children":null,"spread":false}],"spread":true},{"title":"META-INF","children":[{"title":"context.xml <span style='color:#111;'> 478B </span>","children":null,"spread":false},{"title":"MANIFEST.MF <span style='color:#111;'> 36B </span>","children":null,"spread":false}],"spread":true},{"title":"open1.jsp <span style='color:#111;'> 2.47KB </span>","children":null,"spread":false},{"title":"WEB-INF","children":[{"title":"web.xml <span style='color:#111;'> 618B </span>","children":null,"spread":false},{"title":"classes","children":null,"spread":false},{"title":"lib","children":[{"title":"mysql-connector-java-5.1.7-bin.jar <span style='color:#111;'> 693.28KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"ajax","children":[{"title":"cd_catalog.xml <span style='color:#111;'> 4.20KB </span>","children":null,"spread":false},{"title":"demo_get.jsp <span style='color:#111;'> 635B </span>","children":null,"spread":false},{"title":"test02.jsp <span style='color:#111;'> 1.94KB </span>","children":null,"spread":false},{"title":"text01.jsp <span style='color:#111;'> 1008B </span>","children":null,"spread":false}],"spread":true},{"title":"introduce.jsp <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"index.jsp <span style='color:#111;'> 4.97KB </span>","children":null,"spread":false},{"title":"people.jsp <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false}],"spread":true},{"title":".mymetadata <span style='color:#111;'> 288B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 600B </span>","children":null,"spread":false},{"title":".myeclipse","children":null,"spread":false}],"spread":true},{"title":"ReadMe.txt <span style='color:#111;'> 94B </span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明