資源簡(jiǎn)介
JSP實(shí)現(xiàn)分頁(yè)顯示數(shù)據(jù)庫(kù)中的數(shù)據(jù)
JSP實(shí)現(xiàn)分頁(yè)顯示數(shù)據(jù)庫(kù)中的數(shù)據(jù)
JSP實(shí)現(xiàn)分頁(yè)顯示數(shù)據(jù)庫(kù)中的數(shù)據(jù)
JSP實(shí)現(xiàn)分頁(yè)顯示數(shù)據(jù)庫(kù)中的數(shù)據(jù)

代碼片段和文件信息
package?org.apache.jsp;
import?javax.servlet.*;
import?javax.servlet.http.*;
import?javax.servlet.jsp.*;
import?java.sql.*;
import?java.io.*;
public?final?class?index_jsp?extends?org.apache.jasper.runtime.HttpJspbase
????implements?org.apache.jasper.runtime.JspSourceDependent?{
??private?static?final?JspFactory?_jspxFactory?=?JspFactory.getDefaultFactory();
??private?static?java.util.Vector?_jspx_dependants;
??private?org.apache.jasper.runtime.ResourceInjector?_jspx_resourceInjector;
??public?object?getDependants()?{
????return?_jspx_dependants;
??}
??public?void?_jspService(HttpServletRequest?request?HttpServletResponse?response)
????????throws?java.io.IOException?ServletException?{
????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?{
??????response.setContentType(“text/html;charset=UTF-8“);
??????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;
??????_jspx_resourceInjector?=?(org.apache.jasper.runtime.ResourceInjector)?application.getAttribute(“com.sun.appserv.jsp.resource.injector“);
??????out.write(“\n“);
??????out.write(“\n“);
??????out.write(“\n“);
??????mysql.DBManager?db?=?null;
??????synchronized?(_jspx_page_context)?{
????????db?=?(mysql.DBManager)?_jspx_page_context.getAttribute(“db“?PageContext.PAGE_SCOPE);
????????if?(db?==?null){
??????????db?=?new?mysql.DBManager();
??????????_jspx_page_context.setAttribute(“db“?db?PageContext.PAGE_SCOPE);
????????}
??????}
??????out.write(‘\n‘);
????????int?pagesize?=?5;???//每頁(yè)顯示的數(shù)據(jù)量
????????StringBuffer?userInfo?=?new?StringBuffer();
????????StringBuffer?pageInfo?=?new?StringBuffer();
????????ResultSet?rs?=?db.getResult(“select?*?from?student_info“);
????????String?paramPage?=?request.getParameter(“page“);
????????int?currentPage?=?1;
????????try{
????????????currentPage?=?Integer.parseInt(paramPage);
????????}catch(Exception?e){
????????????currentPage?=?1;
????????}
????????rs.last();
????????int?totaluser?=?rs.getRow();
????????int?pagecount?=?(int)Math.ceil((float)totaluser/(float)pagesize);
????????int?i?=?1;
????????rs.absolute((currentPage-1)?*?pagesize?+?1);
????????while(i<=pagesize?&&?!rs.isAfterLast()){
????????????userInfo.append(“\n“);
????????????userInfo.append(““?+?((currentPage?-?1)?*?pagesize?+?i)?+?“ “);
????????????userInfo.append(““?+?rs.getString(1)?+?“ “);
????????????userInfo.append(““?+?rs.getString(
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????6614??2009-07-14?08:32??分頁(yè)顯示\build\generated\classes\org\apache\jsp\index_jsp.class
?????文件????????133??2009-07-14?08:32??分頁(yè)顯示\build\generated\src\org\apache\jsp\index_jsp.class.smap
?????文件???????5733??2009-07-14?08:32??分頁(yè)顯示\build\generated\src\org\apache\jsp\index_jsp.java
?????文件????????505??2009-07-14?08:32??分頁(yè)顯示\build\web\gfv3.dpf
?????文件???????2890??2009-07-14?08:32??分頁(yè)顯示\build\web\index.jsp
?????文件?????????25??2009-07-13?20:18??分頁(yè)顯示\build\web\meta-INF\MANIFEST.MF
?????文件??????????0??2009-07-13?20:18??分頁(yè)顯示\build\web\WEB-INF\classes\.netbeans_automatic_build
?????文件???????2239??2009-07-14?08:09??分頁(yè)顯示\build\web\WEB-INF\classes\mysql\DBManager.class
?????文件?????287022??2009-07-13?20:18??分頁(yè)顯示\build\web\WEB-INF\msbase.jar
?????文件??????67115??2009-07-13?20:18??分頁(yè)顯示\build\web\WEB-INF\mssqlserver.jar
?????文件??????59074??2009-07-13?20:18??分頁(yè)顯示\build\web\WEB-INF\msutil.jar
?????文件?????409322??2009-07-13?20:18??分頁(yè)顯示\build\web\WEB-INF\sqljdbc.jar
?????文件????????505??2009-07-13?20:18??分頁(yè)顯示\build\web\WEB-INF\sun-web.xml
?????文件????????490??2009-07-13?20:18??分頁(yè)顯示\build\web\WEB-INF\web.xml
?????文件???????3505??2009-07-13?19:40??分頁(yè)顯示\build.xml
?????文件?????830405??2009-07-14?00:09??分頁(yè)顯示\dist\____.war
?????文件???????3676??2009-07-14?00:00??分頁(yè)顯示\nbproject\ant-deploy.xml
?????文件??????45890??2009-07-14?08:08??分頁(yè)顯示\nbproject\build-impl.xml
?????文件????????464??2009-07-14?08:08??分頁(yè)顯示\nbproject\genfiles.properties
?????文件???????1856??2009-07-14?08:08??分頁(yè)顯示\nbproject\private\private.properties
?????文件????????211??2009-07-22?18:21??分頁(yè)顯示\nbproject\private\private.xml
?????文件???????2140??2009-07-14?08:08??分頁(yè)顯示\nbproject\project.properties
?????文件????????692??2009-07-13?19:40??分頁(yè)顯示\nbproject\project.xml
?????文件?????????25??2009-07-13?19:40??分頁(yè)顯示\src\conf\MANIFEST.MF
?????文件???????1398??2009-07-13?20:17??分頁(yè)顯示\src\java\mysql\DBManager.java
?????文件???????2890??2009-07-14?08:32??分頁(yè)顯示\web\index.jsp
?????文件?????287022??2004-04-21?16:22??分頁(yè)顯示\web\WEB-INF\msbase.jar
?????文件??????67115??2004-04-21?16:22??分頁(yè)顯示\web\WEB-INF\mssqlserver.jar
?????文件??????59074??2004-04-21?16:22??分頁(yè)顯示\web\WEB-INF\msutil.jar
?????文件?????409322??2008-07-18?08:29??分頁(yè)顯示\web\WEB-INF\sqljdbc.jar
............此處省略32個(gè)文件信息
評(píng)論
共有 條評(píng)論
相關(guān)資源
-
JSP企業(yè)人事管理系統(tǒng)設(shè)計(jì)(源代碼+論
-
實(shí)現(xiàn)一個(gè)圖書(shū)管理系統(tǒng)
-
JAVA JSP公司財(cái)務(wù)管理系統(tǒng) 源代碼 論文
-
JSP+MYSQL旅行社管理信息系統(tǒng)
-
JSP,SQL,MVC的選課系統(tǒng)
-
基于JSP的學(xué)生宿舍管理系統(tǒng)(源碼 數(shù)
-
JSP選課管理系統(tǒng)
-
mysql jsp網(wǎng)站源碼下載
-
JSP做的化妝品商城
-
Jsp購(gòu)物車實(shí)例
-
基于JSP的校友信息管理系統(tǒng)(添加數(shù)
-
基于jsp的bbs論壇 非常詳細(xì)
-
jsp oracle通訊錄
-
JSP學(xué)生信息管理系統(tǒng) Mysql數(shù)據(jù)庫(kù)
-
使用jsp servlet做的投票系統(tǒng)
-
JSP登陸驗(yàn)證 實(shí)現(xiàn)JSP用戶名 密碼 驗(yàn)
-
jsp基于servlet 圖書(shū)館管理系統(tǒng)
-
jsp學(xué)生成績(jī)管理系統(tǒng).rar
-
在線考試系統(tǒng)源代碼(jsp)
-
超級(jí)好的純jsp寫(xiě)的聊天室
-
JSP 網(wǎng)上購(gòu)物網(wǎng)頁(yè)項(xiàng)目
-
JSP+mysql新聞發(fā)布系統(tǒng).rar
-
jsp 學(xué)生信息管理系統(tǒng)設(shè)計(jì)與實(shí)現(xiàn)
-
jsp與SQL Server數(shù)據(jù)庫(kù)實(shí)現(xiàn)的客戶注冊(cè)登
-
簡(jiǎn)易教學(xué)管理系統(tǒng)(jsp spring struts h
-
學(xué)生信息管理系統(tǒng) JSP MySQL
-
jsp ajax 三級(jí)聯(lián)動(dòng)菜單
-
jsp新聞公告與最新消息系統(tǒng)(具備添
-
JSP課程設(shè)計(jì)-留言本 jsp mysql tomcat實(shí)現(xiàn)
-
jsp 做的 班級(jí)管理網(wǎng)站