JSP ÈçºÎʵÏÖÍøÒ³¶¨Ê±Ìø×ª:
JSP ÈçºÎʵÏÖÍøÒ³¶¨Ê±Ìø×ª:
<script language="javascript">
<!--
setTimeout("document.location.href='http://www.163.com'",3000);
//-->
</script>
ˢУº
<meta http-equiv="Refresh" content="xxx;yyy.jsp"/>
xxxÊÇÃëÊý
xxxÃëÖ®ºó¾Í»áÌø×ªµ½yyy.jsp
Ïà¹ØÎĵµ£º
Web.xml³£ÓÃÔªËØ
<web-app>
<display-name></display-name>¶¨ÒåÁËWEBÓ¦ÓõÄÃû×Ö
<description></description> ÉùÃ÷WEBÓ¦ÓõÄÃèÊöÐÅÏ¢
<context-param></context-param> context-paramÔªËØÉùÃ÷Ó¦Ó÷¶Î§Äڵijõʼ»¯²ÎÊý¡£
<filter></filter> ¹ýÂËÆ÷ÔªËØ½«Ò»¸ ......
member.jsp //sessionÏÞÖÆ·ÃÎÊÒ³
<%
String url = ""
if(session.getAttribute("username")==null)
{
url = myRedirect.dealurl(request);//¼Ç¼µ±Ç°µØÖ·ºÍÇëÇó²ÎÊý£¬dealurl½«Êµ¼Êurl´¦ÀíÁ˱ÜÃâºÍÒªÇëÇóurlÓиÉÈÅ,ÒòΪ»áÓÐ& ×Ö·û
......
ÓÉÓÚϵͳÐèÇó£¬×î½üÔÚ¿ª·¢¹ý³ÌÖн«ÏµÍ³´ÓÔÀ´µÄMySQL×ªÒÆµ½SQL
2000Ï£¬ÆäÖÐÓöµ½ÁËÖî¶àÎÊÌ⣬»¨·ÑÁËÎÒ²»ÉÙʱ¼ä¡£ÏÖÔÚ°ÑÎҵľÑéÄóöÀ´¸æËß´ó¼Ò£¬ºÃÈôó¼ÒÉÙ×ßÍä·£¬½ÚԼʱ¼ä¡£
¡¡¡¡Ê×ÏÈÊÇSQL
2000Êý¾Ý¿âµÄ°²×°ÎÊÌ⣬ÔÚ´ËÎÒÖ÷Òª½²Ð©¹ØÓÚSQL 2000µÄ°æ±¾Óë²Ù×÷ϵͳµÄ¼æÈÝÐÔÎÊÌ⣺SQL
2000×ܹ²ÓÐ7¸ö²»Í¬°æ±¾£¬ÊÊ ......
<jsp:useBean>¶¯×÷ÓÃÓÚʵÀý»¯JavaBean£¬»òÕß¶¨Î»Ò»¸öÒѾ´æÔÚµÄJavaBeanʵÀý£¬²¢°ÑʵÀýµÄÒýÓø³¸øÒ»¸ö±äÁ¿¡£
Óï·¨ÈçÏ£º
<jsp:useBean id="cart" scope="session" class="org.sunxin.lesson.jsp.bookstore.CartBean">
<jsp:setProperty>¶¯×÷ºÍ<jsp:useBean>Ò»ÆðʹÓã¬ÓÃÀ´ÉèÖÃJavaBeanµÄ¼òµ¥ÊôÐ ......
ÉÏ¿ÎÀÏʦ½²½âÁËjsp·ÖÒ³ £¬¹ØÓÚ¼ÆËã×ÜÒ³Êý
ËûµÄËã·¨ÊÇ totalPage=(totalRecords+pageSize-1)/pageSize; Ëû˵Èç¹û²»ºÃÀí½â£¬¾ÍÓà i f else Åжϡ£
Ï¿ο´Êé
żȻÏëÆðÁËÒÔǰ£¬µÄÒ»¸öËã·¨
totalPage=(totalRecords%pageSize==0)? (totalRecords/page ......