jsp Í·Îļþ cookie
<%
Cookie[] cooks = request.getCookies();
String cookieName = "Mycookie";
boolean flag = false;
for(Cookie cook : cooks)
{
if(cook.getName().equals(cookieName))
{
flag = true;
break;
}
}
if(!flag){
String str=System.currentTimeMillis()+"";
Cookie cookie=new Cookie("Mycookie",str);
cookie.setMaxAge(365*24*60*60);
response.addCookie(cookie);
}
%>
Ïà¹ØÎĵµ£º
СµÜ×î½ü¹«Ë¾×öÒ»¸ö±à¼Æ÷£¬×îºóÑ¡ÔñÓÃappletС³ÌÐòǶÈëjsp ÖÐ
Ï൱ÓÚÒ»¸ö¿ØÖÆ£¬×ܽá·ÖÏíһϣº
Ö÷ÒªÅöµ½ÒÔÏÂÎÊÌ⣺
1£¬´«²ÎÊýÎÊÌ⣺
applet-->jsp:
<applet code="rubikApp.class" archive="rubik.jar" width="300" height="300">
<param name="beta" ......
JavaBeanµÄ×÷ÓÃÊÇ·â×°Êý¾ÝµÄ
ÌØµã£ºÕâ¸öjavaÀà±ØÐë¾ßÓÐÒ»¸öÎ޲εĹ¹Ô캯Êý£¬ÊôÐÔ±ØÐë˽Óл¯£¬ÊôÐÔ±ØÐëͨ¹ýpublic·½·¨¸øÆäËû³ÌÐòµ÷ÓÃ
ÆäËü³ÌÐò¿ÉÒÔͨ¹ý·´Éä¼¼ÊõʵÀý»¯JavaBean¶ÔÏ󣬲¢ÇÒͨ¹ý·´ÉäÄÇЩ×ñÊØÃüÃû¹æ·¶µÄ·½·¨£¬´Ó¶ø»ñÖªJavaBeanµÄÊôÐÔ£¬½ø¶øµ÷ÓÃÆäÊôÐÔ±£´æÊý¾Ý¡£
³ÉÔ±ÓëÊôÐÔµÄÇø±ð£ºÀà³ÉԱûÓÐget,set·½·¨£¬Àൠ......
ÔÚServlet/JSPѧϰ±Ê¼Ç(1)-tomcatºÍeclipseµÄ°²×°ÖУ¬ÎÒ½éÉÜÁËeclipseºÍtomcatPluginµÄ°²×°ºÍÅäÖ÷½·¨¡£µ«½ñÌì·¢ÏÖ£¬Ê¹ÓÃtomcatPlugin´´½¨ÏîĿʱ£¬²»»á×Ô¶¯Éú³Éweb.xml£¬ÐèÒªÊÖ¹¤±à¼£¬Õâ¶àÉÙÓÐЩ²»·½±ã¡££¨¹ØÓÚweb.xmlµÄ¼òµ¥½éÉܲο¼ÕâÀï¡££©
ʵ¼ÊÉÏ£¬¿ª·¢ºÍµ÷ÊÔServlet/JSP³ÌÐòʱ£¬Ò»¸ö½Ð×öLombozµÄ²å¼þ¸üΪǿ´ó¡¢¸üºÃÓà ......
JFreeChart ÊÇÒ»¸ö¿ªÔ´µÄ JAVA ÏîÄ¿£¬ËüÖ÷ÒªÓÃÀ´¿ª·¢¸÷ÖÖ¸÷ÑùµÄͼ±í£¬ÕâЩͼ±í°üÀ¨£º±ýͼ¡¢Öù״ͼ ( ÆÕͨÖù״ͼÒÔ¼°¶ÑÕ»Öù״ͼ ) ¡¢Ïßͼ¡¢ÇøÓòͼ¡¢·Ö²¼Í¼¡¢»ìºÏͼ¡¢¸ÊÌØÍ¼ÒÔ¼°Ò»Ð©ÒDZíÅ̵ȵȡ£ÔÚÕâЩ²»Í¬Ê½ÑùµÄͼ±íÉÏ¿ÉÒÔÂú×ãĿǰÉÌҵϵͳµÄÒªÇó¡£ JFreeChart ÊÇÒ»ÖÖ»ùÓÚ JAVA ÓïÑÔµÄͼ±í¿ª·¢¼¼Êõ¡£ JFr ......
½ñÌì¸ÕÇÉÅöµ½ºÍJSP×¢ÊÍÓÐµã¹ØÏµµÄÒ»¸öÎÊÌâ¡£ËùÒÔ×ö¸ö±Ê¼Ç£¬ËµÃ÷Ò»ÏÂÏÔʽעÊÍ<!-- comments --> ºÍÒþʽעÊÍ<%-- comments --%> Ö®¼äµÄÁ½µã²î±ð¡£
Ôø¾ÒÔΪÏÔʽעÊͺÍÒþʽעÊͲî±ðÖ»ÓÐÔÚ´úÂëÏÔʾÉÏ£¬ÕâµãÓ¦¸Ã´ó¼Ò¶¼ÖªµÀ£¬ÏÔʽעÊÍ»áÏÔʾÔÚ¿Í»§¶ËÒ³ÃæÔ´ÂëÖУ¬¶øÒþʽעÊÍÊÇ¿´²»µ½µÄ£¬²»¹ýÕâÖ»ÊǵÚÒ»µã¡£
......