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);
}
%>
Ïà¹ØÎĵµ£º
ÔÚjspÒ³ÃæÖн«»Ø³µ»»Ðзû´æÈë±íÖз½·¨
1.ÔÚÒ»¸ötextareaÖÐÊäÈëÒ»¶ÎÎÄ×Ö£¬Óл»ÐÐʱ£¬½«»»ÐзûÒ»Æð²åÈëÊý¾Ý¿âÖÐ
ʹÓ÷½·¨ÈçÏ£º
public static String TextToHtml(String sourcestr)
{   ......
JFreeChart ÊÇÒ»¸ö¿ªÔ´µÄ JAVA ÏîÄ¿£¬ËüÖ÷ÒªÓÃÀ´¿ª·¢¸÷ÖÖ¸÷ÑùµÄͼ±í£¬ÕâЩͼ±í°üÀ¨£º±ýͼ¡¢Öù״ͼ ( ÆÕͨÖù״ͼÒÔ¼°¶ÑÕ»Öù״ͼ ) ¡¢Ïßͼ¡¢ÇøÓòͼ¡¢·Ö²¼Í¼¡¢»ìºÏͼ¡¢¸ÊÌØÍ¼ÒÔ¼°Ò»Ð©ÒDZíÅ̵ȵȡ£ÔÚÕâЩ²»Í¬Ê½ÑùµÄͼ±íÉÏ¿ÉÒÔÂú×ãĿǰÉÌҵϵͳµÄÒªÇó¡£ JFreeChart ÊÇÒ»ÖÖ»ùÓÚ JAVA ÓïÑÔµÄͼ±í¿ª·¢¼¼Êõ¡£ JFr ......
JFreeChartÊÇÒ»×鹦ÄÜÇ¿´ó¡¢Áé»îÒ×ÓõÄJava»æÍ¼API£¬Ê¹ÓÃËü¿ÉÒÔÉú³É¶àÖÖͨÓÃÐԵı¨±í£¬°üÀ¨Öù״ͼ¡¢±ýͼ¡¢ÇúÏßͼ¡¢¸ÊÌØÍ¼µÈ¡£ËüÄܹ»ÓÃÔÚSwingºÍWebµÈÖÐÖÆ×÷×Ô¶¨ÒåµÄͼ±í»ò±¨±í£¬²¢Çҵõ½¹ã·ºµÄÓ¦Óᣱ¾ÎĽ«Í¨¹ýÒýÁì¶ÁÕßѧϰÔÚJFreeChartÖбýͼ¡¢Öù״ͼ ......
±¾ÎĽéÉÜJSPÖÐrequestÊôÐÔµÄÓ÷¨£¬ÒÔ¼°request.getParameter() ºÍrequest.getAttribute() Çø±ð¡£
Ò»¡¢request.getParameter() ºÍrequest.getAttribute() Çø±ð
1.request.getParameter()È¡µÃÊÇͨ¹ýÈÝÆ÷µÄʵÏÖÀ´È¡µÃͨ¹ýÀàËÆpost£¬getµÈ·½Ê½´«ÈëµÄÊý¾Ý£¬request.setAttribute()ºÍgetAttribute()Ö»ÊÇÔÚwebÈÝÆ÷ÄÚ²¿Á÷ת£¬½ ......