資源簡介
JSP是一種動態網頁技術標準,利用該技術可以建立安全、跨平臺的先進動態網站。耿祥義、張躍平編著的《JSP實用教程(第3版)》是一本實用教程,配備了大量的例題,敘述詳細,通俗易懂,便于自學,不僅注重結合實例講解一些難點和關鍵技術,而且特別注重訓練培養在Web設計中使用MVC模式。全書共分 11章,內容包括JSP簡介、JSP語法、JSP內置對象、 JSP與Javabean、Java Servlet、MVC模式、在JSP中使用數據庫、文件操作、使用XML以及化妝品銷售網、**信息發布網等內容。本書所有知識都結合具體實例進行介紹,力求詳略得當,突出JSP在開發Web動態網站方面的強大功能,使讀者快速掌握和運用JSP 的編程技巧。
本書不僅可以作為大學計算機及相關專業的教材,也適合自學者及網站開發人員參考使用。
代碼片段和文件信息
package?mybean.data;
import?com.sun.rowset.*;?
public?class?DataByPage{
????CachedRowSetImpl?rowSet=null;?????????//存儲表中全部記錄的行集對象
????int?pageSize=1;??????????????????????//每頁顯示的記錄數
????int?totalPages=1;?????????????????????//分頁后的總頁數
????int?currentPage?=1???;?????????????????//當前顯示頁?
????public?void?setRowSet(CachedRowSetImpl?set){
???????rowSet=set;
????}
????public?CachedRowSetImpl?getRowSet(){
???????return?rowSet;
????}
????public?void?setPageSize(int?size){
???????pageSize=size;
????}
????public?int?getPageSize(){
???????return?pageSize;
????}?
????public?int?getTotalPages(){
???????return?totalPages;
????}?
????public?void?setTotalPages(int?n){
???????totalPages=n;?
????}
????public?void?setCurrentPage(int?n){
???????currentPage?=n;
????}
????public?int?getCurrentPage(){
???????return?currentPage?;
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????257??2014-12-13?19:34??ch1\example1_1.jsp
?????文件????????308??2014-12-16?11:33??ch1\shiyan.jsp
?????文件?????286722??2013-08-01?15:14??ch2\back.jpg
?????文件????????876??2014-04-03?08:34??ch2\example2_1.jsp
?????文件????????222??2014-04-03?18:13??ch2\example2_10_a.jsp
?????文件????????231??2014-04-03?18:24??ch2\example2_10_b.jsp
?????文件????????393??2014-04-03?18:51??ch2\example2_11.jsp
?????文件????????466??2014-04-03?19:20??ch2\example2_12.jsp
?????文件????????239??2014-04-03?19:23??ch2\example2_12_a.jsp
?????文件????????241??2014-04-03?19:24??ch2\example2_12_b.jsp
?????文件????????197??2014-04-03?08:45??ch2\example2_2.jsp
?????文件????????575??2014-04-03?09:13??ch2\example2_3.jsp
?????文件????????338??2014-04-03?09:27??ch2\example2_4.jsp
?????文件????????502??2014-04-03?11:01??ch2\example2_5.jsp
?????文件????????484??2014-04-03?11:32??ch2\example2_6.jsp
?????文件????????471??2014-04-03?11:47??ch2\example2_7.jsp
?????文件???????1001??2014-04-03?12:12??ch2\example2_8.jsp
?????文件????????345??2014-04-03?13:22??ch2\example2_9.jsp
?????文件??????60992??2014-04-03?18:06??ch2\image\beida.jpg
?????文件?????362539??2014-03-07?17:29??ch2\image\hehua.jpg
?????文件?????126876??2013-08-01?22:07??ch2\image\meigui.jpg
?????文件?????128297??2014-04-03?13:11??ch2\image\tsinghua.jpg
?????文件?????160706??2014-04-03?10:16??ch2\image\xiao.jpg
?????文件?????139979??2014-04-03?10:19??ch2\image\zhong.jpg
?????文件????????146??2014-04-03?18:13??ch2\myfile\ok.txt
?????文件????????870??2014-04-03?18:51??ch2\myfile\trangle.jsp
?????文件????5124096??2014-02-11?08:51??ch2\sound\beida.mp3
?????文件????2284180??2014-02-07?20:42??ch2\sound\tsinghua.mp3
?????文件???11298778??2013-09-13?14:39??ch3\avi\夕陽山頂.avi
?????文件???10317158??2013-10-01?18:10??ch3\avi\我的祖國.avi
............此處省略370個文件信息
- 上一篇:基于Android的心電波形顯示,藍牙接收數據
- 下一篇:java編程邏輯
評論
共有 條評論