¹ØÓÚ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¶ÔÏóÊÇÁÙʱµÄ£¬²»Òª±£´æÔÚÓ²ÅÌÖУ¬¹Ø±Õä¯ÀÀÆ÷ºóÊý¾Ý»á×Ô¶¯¶ªÊ§£¡
Ïà¹ØÎĵµ£º
1. ÔõôÔÚ¶à¸öJSPÒ³ÃæÖ®¼ä½øÐвÎÊý´«µÝ£¿ÐèҪʹÓÃJSPµÄÄÚÖÃ×÷ÓÃÓò¶ÔÏósession¡£ÀûÓÃËüµÄÁ½¸ö·½·¨setAttribute()£¬getAttribute()
2. ÏÂÃæµÄÕâ¸öʵÀýʵÏÖÁ˰ѵÚÒ»¸öJSPÒ³ÃæµÄ²ÎÊý´«µÝ¸øµÚÈý¸öÒ³ÃæµÄ¹¦ÄÜ
3. &nbs ......
ÉϺ£ÔóÎäÍøÂçÓÐÏÞ¹«Ë¾
ÕÐÆ¸£ºÕÐÆ¸jsp\phpÍøÕ¾¿ª·¢³ÌÐòÔ±
ÒªÇóÓÐÈýÄêÒÔÉÏ¿ª·¢¾Ñé
¶ÔTomcat+Apache¼¯Èº¼¼ÊõÓÐÊìϤµÄ¾Ñé.¶ÔËÑË÷ÒýÇæ¼¼Êõ(Lucene)±È½ÏÁ˽⡣
-ÊìÁ·Ê¹ÓÃUML½¨Ä£¹¤¾ß¡¢°æ±¾¿ØÖƹ¤¾ß; ÊìÁ·Ê¹ÓÃEclipseµÈIDE¿ª·¢¹¤¾ß;
-¾«Í¨JAVA,php,ÉîÈëÀí½âOOP˼Ïë,ÊìϤÉè¼ÆÄ£Ê½¡£
-ÊìÁ·ÔËÓÃJ2EE¼¼Êõ¡¢WEB·þÎñÆ÷ºÍ¹ØÏµÐ ......
<SCRIPT LANGUAGE="javascript">
//Ö¸¶¨Ò³ÃæÇøÓòÄÚÈݵ¼ÈëWord
function AllAreaWord() {
var oWD = new ActiveXObject("Word.Application");
var oDC = ......
<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" ......
<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> ......