jsp ¼òµ¥·ÖÒ³
//×ܼǼÊý
int count = personDao.getCount();
//ÿҳÏÔʾ5Ìõ
int pageSize = 5;
//µ±Ç°Ò³
int currentPage = 1;
int pageCount = (count + pageSize - 1) / pageSize;
String _currentPgae = request.getParameter("currentPage");
if (_currentPgae != null) {
currentPage = Integer.parseInt(_currentPgae);
}
if (currentPage < 1) {
currentPage = 1;
}
if (currentPage > pageCount)
currentPage = pageCount;
List list = personDao.getPageList((currentPage - 1) * pageSize,
pageSize);
Iterator it = list.iterator();
&
Ïà¹ØÎĵµ£º
1.Ìí¼Ó host ¿é
ÿһ¸öJSPÐéÄâÖ÷»úÓÐËü×Ô¼ºµÄ host ¿é¡£Ã¿Ò»¸öÖÁÉÙÒª¶¨ÒåidÀ´Ö¸¶¨ÐéÄâÖ÷»úµÄÃû×ÖºÍÒ»¸örootÓ¦ÓóÌÐò¡£Ò»¸ö <root-directory>ͨ³£ÓÃÀ´ÎªÖ÷»ú¶¨Ò»¸öĬÈϵÄwebÓ¦ÓóÌÐò¡£
ÅäÖÃÎļþƬ¶Î£º
<server>
<host id='gryffindor.caucho.com'>
<root-directory>/home/www/gryf ......
¾Å´ó¶ÔÏó£º
ÄÚÖöÔÏó£¨ÓÖ½ÐÒþº¬¶ÔÏó£¬ÓÐ9¸öÄÚÖöÔÏó£©:²»ÐèÒªÔ¤ÏÈÉùÃ÷¾Í¿ÉÒÔÔڽű¾´úÂëºÍ±í´ïʽÖÐËæÒâʹÓÃ
1-out:
javax.servlet.jsp.JspWriterÀàÐÍ£¬´ú±íÊä³öÁ÷µÄ¶ÔÏó¡£×÷ÓÃÓòΪpage£¨Ò³ÃæÖ´ÐÐÆÚ£©
request£ºjavax.servlet.ServletRequestµÄ×ÓÀàÐÍ£¬´Ë¶ÔÏó·â×°ÁËÓÉWEBä¯ÀÀÆ÷»òÆäËü¿Í»§¶ËÉú³ÉµØHTTP
ÇëÇóµÄϸ½Ú£¨²ÎÊý ......
Ò» ǰÌá
Ï£Íû×îеļͼÔÚ¿ªÍ·¸øÄãµÄ±í½¨Á¢²éѯ£º
񡜧mytable
²éѯ£ºcreate or replace view as mytable_view from mytable order by id desc ÆäÖУ¬×îºÃʹÓÃÐòÁкÅcreate sequence mytable_sequence À´×Ô¶¯Ôö¼ÓÄãµÄ¼ ......
windows Media Player 9.0ÍøÒ³²¥·ÅÆ÷
£¨mp3.wma.wmv.asf£©
ÒÔÏÂͼƬΪһ°ã²¥mp3.wmaÎļþʱµ÷ÓÃwindows×Ô´ø²¥·ÅÆ÷windows Midia Player9.0ËùÏÔʾÍâ¹Û£¬·Ç9.0°æËùÏÔʾµÄÃæ°åÍâ¹Û¿ÉÄܲ»Í¬£¡
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
´úÂë¼ò½é£º
width£¨²¥·ÅÆ÷Ãæ°å¿í¶È£©
height£¨²¥·ÅÆ÷Ãæ°å¸ß¶È£©
autostart£¨×Ô¶¯² ......