Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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);
}
%>


Ïà¹ØÎĵµ£º

applet ǶÈëjsp µÈ´«²ÎÊýÎÊÌâ

СµÜ×î½ü¹«Ë¾×öÒ»¸ö±à¼­Æ÷£¬×îºóÑ¡ÔñÓÃappletС³ÌÐòǶÈëjsp ÖÐ
Ï൱ÓÚÒ»¸ö¿ØÖÆ£¬×ܽá·ÖÏíһϣº
Ö÷ÒªÅöµ½ÒÔÏÂÎÊÌ⣺
1£¬´«²ÎÊýÎÊÌ⣺
applet-->jsp:
<applet code="rubikApp.class" archive="rubik.jar" width="300" height="300">
<param name="beta" ......

JavaBeanÓëJSP¿ª·¢£¬EL±í´ïʽºÍ×Ô¶¨Òå±êÇ©ÈëÃÅ

JavaBeanµÄ×÷ÓÃÊÇ·â×°Êý¾ÝµÄ
Ìص㣺Õâ¸öjavaÀà±ØÐë¾ßÓÐÒ»¸öÎ޲εĹ¹Ô캯Êý£¬ÊôÐÔ±ØÐë˽Óл¯£¬ÊôÐÔ±ØÐëͨ¹ýpublic·½·¨¸øÆäËû³ÌÐòµ÷ÓÃ
ÆäËü³ÌÐò¿ÉÒÔͨ¹ý·´Éä¼¼ÊõʵÀý»¯JavaBean¶ÔÏ󣬲¢ÇÒͨ¹ý·´ÉäÄÇЩ×ñÊØÃüÃû¹æ·¶µÄ·½·¨£¬´Ó¶ø»ñÖªJavaBeanµÄÊôÐÔ£¬½ø¶øµ÷ÓÃÆäÊôÐÔ±£´æÊý¾Ý¡£
³ÉÔ±ÓëÊôÐÔµÄÇø±ð£ºÀà³ÉԱûÓÐget,set·½·¨£¬Àൠ......

jsp´æÈëºÍ¶ÁÈ¡»Ø³µ»»Ðзû

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

JSP×Ô¶¨Òå±êÇ©


Ò»¡¢JSP×Ô¶¨Òå±êÇ©¼ò½é
±êÇ©ÊÇÒ»ÖÖXMLÔªËØ£¬Í¨¹ý±êÇ©¿ÉÒÔʹJSPÍøÒ³±äµÃ¼ò½à²¢ÇÒÒ×ÓÚά»¤£¬»¹¿ÉÒÔ·½±ãµØʵÏÖͬһ¸öJSPÎļþÖ§³Ö¶àÖÖÓïÑÔ°æ±¾¡£ÓÉÓÚ±êÇ©ÊÇXMLÔªËØ£¬ËùÒÔËüµÄÃû³ÆºÍÊôÐÔ¶¼ÊÇ´óСдÃô¸ÐµÄ
±ê×¼JSP±êÇ©ÊÇÓÃÀ´µ÷ÓÃJavaBean×é¼þµÄ²Ù×÷£¬´¦Àí¶¨ÏòÇëÇóÒÔ¼ò»¯JSPÒ³Ã濪·¢Óëά»¤¡£JSP¼¼ÊõÌṩÁËÒ»ÖÖ·â×°ÆäËü¶¯Ì¬ÀàÐÍ ......

JSP ÏÐʽעÊÍ ÒþʽעÊӵIJî±ð

½ñÌì¸ÕÇÉÅöµ½ºÍJSP×¢ÊÍÓеã¹ØϵµÄÒ»¸öÎÊÌâ¡£ËùÒÔ×ö¸ö±Ê¼Ç£¬ËµÃ÷Ò»ÏÂÏÔʽעÊÍ<!-- comments --> ºÍÒþʽעÊÍ<%-- comments --%> Ö®¼äµÄÁ½µã²î±ð¡£
 
Ôø¾­ÒÔΪÏÔʽעÊͺÍÒþʽעÊͲî±ðÖ»ÓÐÔÚ´úÂëÏÔʾÉÏ£¬ÕâµãÓ¦¸Ã´ó¼Ò¶¼ÖªµÀ£¬ÏÔʽעÊÍ»áÏÔʾÔÚ¿Í»§¶ËÒ³ÃæÔ´ÂëÖУ¬¶øÒþʽעÊÍÊÇ¿´²»µ½µÄ£¬²»¹ýÕâÖ»ÊǵÚÒ»µã¡£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ