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

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´æÈëºÍ¶ÁÈ¡»Ø³µ»»Ðзû

ÔÚjspÒ³ÃæÖн«»Ø³µ»»Ðзû´æÈë±íÖз½·¨
1.ÔÚÒ»¸ötextareaÖÐÊäÈëÒ»¶ÎÎÄ×Ö£¬Óл»ÐÐʱ£¬½«»»ÐзûÒ»Æð²åÈëÊý¾Ý¿âÖÐ
ʹÓ÷½·¨ÈçÏ£º
public   static   String   TextToHtml(String   sourcestr)      
  {       ......

JFreeChartÔÚJSPÖеÄÓ¦ÓÃʵÀý

    JFreeChart ÊÇÒ»¸ö¿ªÔ´µÄ JAVA ÏîÄ¿£¬ËüÖ÷ÒªÓÃÀ´¿ª·¢¸÷ÖÖ¸÷ÑùµÄͼ±í£¬ÕâЩͼ±í°üÀ¨£º±ýͼ¡¢Öù״ͼ ( ÆÕͨÖù״ͼÒÔ¼°¶ÑÕ»Öù״ͼ ) ¡¢Ïßͼ¡¢ÇøÓòͼ¡¢·Ö²¼Í¼¡¢»ìºÏͼ¡¢¸ÊÌØÍ¼ÒÔ¼°Ò»Ð©ÒDZíÅ̵ȵȡ£ÔÚÕâЩ²»Í¬Ê½ÑùµÄͼ±íÉÏ¿ÉÒÔÂú×ãĿǰÉÌҵϵͳµÄÒªÇó¡£ JFreeChart ÊÇÒ»ÖÖ»ùÓÚ JAVA ÓïÑÔµÄͼ±í¿ª·¢¼¼Êõ¡£ JFr ......

ÓÃJFreeChartÔöÇ¿JSP±¨±íµÄÓû§ÌåÑé

  
   
      JFreeChartÊÇÒ»×鹦ÄÜÇ¿´ó¡¢Áé»îÒ×ÓõÄJava»æÍ¼API£¬Ê¹ÓÃËü¿ÉÒÔÉú³É¶àÖÖͨÓÃÐԵı¨±í£¬°üÀ¨Öù״ͼ¡¢±ýͼ¡¢ÇúÏßͼ¡¢¸ÊÌØÍ¼µÈ¡£ËüÄܹ»ÓÃÔÚSwingºÍWebµÈÖÐÖÆ×÷×Ô¶¨ÒåµÄͼ±í»ò±¨±í£¬²¢Çҵõ½¹ã·ºµÄÓ¦Óᣱ¾ÎĽ«Í¨¹ýÒýÁì¶ÁÕßѧϰÔÚJFreeChartÖбýͼ¡¢Öù״ͼ ......

Á˽âJSPÖÐrequestÊôÐÔµÄÓ÷¨


±¾ÎĽéÉÜJSPÖÐrequestÊôÐÔµÄÓ÷¨£¬ÒÔ¼°request.getParameter() ºÍrequest.getAttribute() Çø±ð¡£
Ò»¡¢request.getParameter() ºÍrequest.getAttribute() Çø±ð
1.request.getParameter()È¡µÃÊÇͨ¹ýÈÝÆ÷µÄʵÏÖÀ´È¡µÃͨ¹ýÀàËÆpost£¬getµÈ·½Ê½´«ÈëµÄÊý¾Ý£¬request.setAttribute()ºÍgetAttribute()Ö»ÊÇÔÚwebÈÝÆ÷ÄÚ²¿Á÷ת£¬½ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ