資源簡介
JSP實現分頁顯示數據庫中的數據
JSP實現分頁顯示數據庫中的數據
JSP實現分頁顯示數據庫中的數據
JSP實現分頁顯示數據庫中的數據

代碼片段和文件信息
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;???//每頁顯示的數據量
????????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(
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????6614??2009-07-14?08:32??分頁顯示\build\generated\classes\org\apache\jsp\index_jsp.class
?????文件????????133??2009-07-14?08:32??分頁顯示\build\generated\src\org\apache\jsp\index_jsp.class.smap
?????文件???????5733??2009-07-14?08:32??分頁顯示\build\generated\src\org\apache\jsp\index_jsp.java
?????文件????????505??2009-07-14?08:32??分頁顯示\build\web\gfv3.dpf
?????文件???????2890??2009-07-14?08:32??分頁顯示\build\web\index.jsp
?????文件?????????25??2009-07-13?20:18??分頁顯示\build\web\meta-INF\MANIFEST.MF
?????文件??????????0??2009-07-13?20:18??分頁顯示\build\web\WEB-INF\classes\.netbeans_automatic_build
?????文件???????2239??2009-07-14?08:09??分頁顯示\build\web\WEB-INF\classes\mysql\DBManager.class
?????文件?????287022??2009-07-13?20:18??分頁顯示\build\web\WEB-INF\msbase.jar
?????文件??????67115??2009-07-13?20:18??分頁顯示\build\web\WEB-INF\mssqlserver.jar
?????文件??????59074??2009-07-13?20:18??分頁顯示\build\web\WEB-INF\msutil.jar
?????文件?????409322??2009-07-13?20:18??分頁顯示\build\web\WEB-INF\sqljdbc.jar
?????文件????????505??2009-07-13?20:18??分頁顯示\build\web\WEB-INF\sun-web.xml
?????文件????????490??2009-07-13?20:18??分頁顯示\build\web\WEB-INF\web.xml
?????文件???????3505??2009-07-13?19:40??分頁顯示\build.xml
?????文件?????830405??2009-07-14?00:09??分頁顯示\dist\____.war
?????文件???????3676??2009-07-14?00:00??分頁顯示\nbproject\ant-deploy.xml
?????文件??????45890??2009-07-14?08:08??分頁顯示\nbproject\build-impl.xml
?????文件????????464??2009-07-14?08:08??分頁顯示\nbproject\genfiles.properties
?????文件???????1856??2009-07-14?08:08??分頁顯示\nbproject\private\private.properties
?????文件????????211??2009-07-22?18:21??分頁顯示\nbproject\private\private.xml
?????文件???????2140??2009-07-14?08:08??分頁顯示\nbproject\project.properties
?????文件????????692??2009-07-13?19:40??分頁顯示\nbproject\project.xml
?????文件?????????25??2009-07-13?19:40??分頁顯示\src\conf\MANIFEST.MF
?????文件???????1398??2009-07-13?20:17??分頁顯示\src\java\mysql\DBManager.java
?????文件???????2890??2009-07-14?08:32??分頁顯示\web\index.jsp
?????文件?????287022??2004-04-21?16:22??分頁顯示\web\WEB-INF\msbase.jar
?????文件??????67115??2004-04-21?16:22??分頁顯示\web\WEB-INF\mssqlserver.jar
?????文件??????59074??2004-04-21?16:22??分頁顯示\web\WEB-INF\msutil.jar
?????文件?????409322??2008-07-18?08:29??分頁顯示\web\WEB-INF\sqljdbc.jar
............此處省略32個文件信息
評論
共有 條評論
相關資源
-
JSP企業人事管理系統設計(源代碼+論
-
實現一個圖書管理系統
-
JAVA JSP公司財務管理系統 源代碼 論文
-
JSP+MYSQL旅行社管理信息系統
-
JSP,SQL,MVC的選課系統
-
基于JSP的學生宿舍管理系統(源碼 數
-
JSP選課管理系統
-
mysql jsp網站源碼下載
-
JSP做的化妝品商城
-
Jsp購物車實例
-
基于JSP的校友信息管理系統(添加數
-
基于jsp的bbs論壇 非常詳細
-
jsp oracle通訊錄
-
JSP學生信息管理系統 Mysql數據庫
-
使用jsp servlet做的投票系統
-
JSP登陸驗證 實現JSP用戶名 密碼 驗
-
jsp基于servlet 圖書館管理系統
-
jsp學生成績管理系統.rar
-
在線考試系統源代碼(jsp)
-
超級好的純jsp寫的聊天室
-
JSP 網上購物網頁項目
-
JSP+mysql新聞發布系統.rar
-
jsp 學生信息管理系統設計與實現
-
jsp與SQL Server數據庫實現的客戶注冊登
-
簡易教學管理系統(jsp spring struts h
-
學生信息管理系統 JSP MySQL
-
jsp ajax 三級聯動菜單
-
jsp新聞公告與最新消息系統(具備添
-
JSP課程設計-留言本 jsp mysql tomcat實現
-
jsp 做的 班級管理網站