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

¹ØÓÚjspÖеÄcookieС³ÌÐò

<body>
 <%
   Cookie[] cookies = request.getCookies() ;
   Cookie cookie = null ;
   if(cookies!=null){
     cookie = cookies[0] ;
     out.print("ÉϴηÃÎʵÄipÊÇ£º " + request.getRemoteAddr() +"<br>") ;  //µÃµ½¿Í»§¶ËµÄip
     out.print("ÉϴηÃÎÊʱ¼ä£º" + cookie.getValue()) ;
     cookie.setValue(new java.util.Date().toString()) ;
     response.addCookie(cookie) ;         //±£´æµ½¿Í»§¶Ë
     cookie.setMaxAge(365 * 24 * 3600);
   }
  
  
   if(cookies==null){
     cookie = new Cookie("AccessTime","") ;
     cookie.setValue(new java.util.Date().toString()) ;
     response.addCookie(cookie) ;    //±£´æµ½¿Í»§¶Ë
     cookie.setMaxAge(365 * 24 * 3600);
   }
  %>
  </body>
ps£ºÈç¹ûûÓÐÉèÖÃcookieµÄÓÐЧÆÚ£¬ÄÇôÔڹرÕä¯ÀÀÆ÷ʱcookie»á±»É¾³ý¡£Èç¹ûÉúÃüÆÚΪ¸ºÕûÊý£¬±íʾÕâ¸öcookie¶ÔÏóÊÇÁÙʱµÄ£¬²»Òª±£´æÔÚÓ²ÅÌÖУ¬¹Ø±Õä¯ÀÀÆ÷ºóÊý¾Ý»á×Ô¶¯¶ªÊ§£¡


Ïà¹ØÎĵµ£º

ÔÚ¶à¸öjspÒ³Ãæ´«µÝ²ÎÊý

1.       ÔõôÔÚ¶à¸öJSPÒ³ÃæÖ®¼ä½øÐвÎÊý´«µÝ£¿ÐèҪʹÓÃJSPµÄÄÚÖÃ×÷ÓÃÓò¶ÔÏósession¡£ÀûÓÃËüµÄÁ½¸ö·½·¨setAttribute()£¬getAttribute()
2.       ÏÂÃæµÄÕâ¸öʵÀýʵÏÖÁ˰ѵÚÒ»¸öJSPÒ³ÃæµÄ²ÎÊý´«µÝ¸øµÚÈý¸öÒ³ÃæµÄ¹¦ÄÜ
3.     &nbs ......

ÕÐÆ¸jsp\phpÍøÕ¾¿ª·¢³ÌÐòÔ±

ÉϺ£ÔóÎäÍøÂçÓÐÏÞ¹«Ë¾
ÕÐÆ¸£ºÕÐÆ¸jsp\phpÍøÕ¾¿ª·¢³ÌÐòÔ±
ÒªÇóÓÐÈýÄêÒÔÉÏ¿ª·¢¾­Ñé
¶ÔTomcat+Apache¼¯Èº¼¼ÊõÓÐÊìϤµÄ¾­Ñé.¶ÔËÑË÷ÒýÇæ¼¼Êõ(Lucene)±È½ÏÁ˽⡣
-ÊìÁ·Ê¹ÓÃUML½¨Ä£¹¤¾ß¡¢°æ±¾¿ØÖƹ¤¾ß; ÊìÁ·Ê¹ÓÃEclipseµÈIDE¿ª·¢¹¤¾ß;
-¾«Í¨JAVA,php,ÉîÈëÀí½âOOP˼Ïë,ÊìϤÉè¼ÆÄ£Ê½¡£
-ÊìÁ·ÔËÓÃJ2EE¼¼Êõ¡¢WEB·þÎñÆ÷ºÍ¹ØÏµÐ ......

½«jspÒ³ÃæÖÐtableµ¼³öµ½doc

<SCRIPT LANGUAGE="javascript">
       //Ö¸¶¨Ò³ÃæÇøÓòÄÚÈݵ¼ÈëWord
       function AllAreaWord() {
       var oWD = new ActiveXObject("Word.Application");
       var oDC = ......

×鯴jsp·½·¨2

<html:html>
<HEAD>
<tiles:insert attribute="header" />
</HEAD>
<body>
<tiles:insert attribute="top" />
<table width="100%" height="400" border="0" align="center"
 cellpadding="0" cellspacing="0">
 <tr>
  <td width="178" ......

×鯴jsp·½·¨3

<table width=100% border="0" align="center" cellpadding="0"
 cellspacing="0">
 <tr>
  <td height="1" class="gray1"></td>
 </tr>
</table>
<tiles:insert attribute="footer" />
</body>
</html:html> ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ