Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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


Ïà¹ØÎĵµ£º

jspµÄweb.xmlÅäÖÃ˵Ã÷

Web.xml³£ÓÃÔªËØ
<web-app>
<display-name></display-name>¶¨ÒåÁËWEBÓ¦ÓõÄÃû×Ö
<description></description> ÉùÃ÷WEBÓ¦ÓõÄÃèÊöÐÅÏ¢
<context-param></context-param> context-paramÔªËØÉùÃ÷Ó¦Ó÷¶Î§Äڵijõʼ»¯²ÎÊý¡£
<filter></filter> ¹ýÂËÆ÷ÔªËØ½«Ò»¸ ......

JSPÍøÕ¾µÇ¼¼ÇÒäÌø×ªÊµÏÖµÄÒ»ÖÖ·½·¨

 member.jsp   //sessionÏÞÖÆ·ÃÎÊÒ³
<%
String url = ""
if(session.getAttribute("username")==null)
{
         url = myRedirect.dealurl(request);//¼Ç¼µ±Ç°µØÖ·ºÍÇëÇó²ÎÊý£¬dealurl½«Êµ¼Êurl´¦ÀíÁ˱ÜÃâºÍÒªÇëÇóurlÓиÉÈÅ,ÒòΪ»áÓÐ& ×Ö·û
  ......

JSPÖÐÁ¬½ÓSQL 2000Êý¾Ý¿âµÄÎÊÌâ×ܽá

 
ÓÉÓÚϵͳÐèÇó£¬×î½üÔÚ¿ª·¢¹ý³ÌÖн«ÏµÍ³´ÓÔ­À´µÄMySQL×ªÒÆµ½SQL
2000Ï£¬ÆäÖÐÓöµ½ÁËÖî¶àÎÊÌ⣬»¨·ÑÁËÎÒ²»ÉÙʱ¼ä¡£ÏÖÔÚ°ÑÎҵľ­ÑéÄóöÀ´¸æËß´ó¼Ò£¬ºÃÈôó¼ÒÉÙ×ßÍä·£¬½ÚԼʱ¼ä¡£
¡¡¡¡Ê×ÏÈÊÇSQL
2000Êý¾Ý¿âµÄ°²×°ÎÊÌ⣬ÔÚ´ËÎÒÖ÷Òª½²Ð©¹ØÓÚSQL 2000µÄ°æ±¾Óë²Ù×÷ϵͳµÄ¼æÈÝÐÔÎÊÌ⣺SQL
2000×ܹ²ÓÐ7¸ö²»Í¬°æ±¾£¬ÊÊ ......

JSPÖÐʹÓÃJavaBean

<jsp:useBean>¶¯×÷ÓÃÓÚʵÀý»¯JavaBean£¬»òÕß¶¨Î»Ò»¸öÒѾ­´æÔÚµÄJavaBeanʵÀý£¬²¢°ÑʵÀýµÄÒýÓø³¸øÒ»¸ö±äÁ¿¡£
Óï·¨ÈçÏ£º
<jsp:useBean id="cart" scope="session" class="org.sunxin.lesson.jsp.bookstore.CartBean">
<jsp:setProperty>¶¯×÷ºÍ<jsp:useBean>Ò»ÆðʹÓã¬ÓÃÀ´ÉèÖÃJavaBeanµÄ¼òµ¥ÊôÐ ......

jsp·ÖÒ³

ÉÏ¿ÎÀÏʦ½²½âÁËjsp·ÖÒ³ £¬¹ØÓÚ¼ÆËã×ÜÒ³Êý
 
 ËûµÄËã·¨ÊÇ  totalPage=(totalRecords+pageSize-1)/pageSize;  Ëû˵Èç¹û²»ºÃÀí½â£¬¾ÍÓà i f  else Åжϡ£
 
Ï¿ο´Êé
 
 Å¼È»ÏëÆðÁËÒÔǰ£¬µÄÒ»¸öËã·¨
 
totalPage=(totalRecords%pageSize==0)?  (totalRecords/page ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ