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

JspÖеÄapplication¶ÔÏó

     Ò»¸öÕ¾µã·þÎñÆ÷ÖÐËùÓеÄÓû§¹«ÓÃÒ»¸öapplication¶ÔÏ󣬵±Õ¾µã·þÎñÆ÷¿ªÆôʱ£¬¸Ã¶ÔÏó¾Í±»´´½¨£¬Ö±µ½ÍøÕ¾¹Ø±Õ£»Ò²¾ÍÊÇ˵£º¸Ã¶ÔÏóÒ»µ©±»´´½¨ÁË£¬Ëü½«±»±£´æÔÚ·þÎñÆ÷ÉÏ£»ËüµÄÉúÃüÖÜÆÚÓë·þÎñÆ÷µÄÉúÃüÖÜÆÚÏàͬ£»³£Ó÷½·¨ÈçÏÂ
setAttribute(String name,Object o)£º½«Ãû×ÖΪname£¬ÖµÎªoµÄÊý¾Ý´æ´¢µ½application¶ÔÏóÖУ»oΪ¶ÔÏóÀàÐÍ
getAttribute(String name)£º»ñÈ¡application¶ÔÏóÖÐÃû×ÖΪnameµÄÖµ
getAttributeNames()£º»ñÈ¡application¶ÔÏóÖд洢µÄËùÓÐÖµµÄÃû×Ö£¬·µ»ØµÄÊÇÒ»¸öEnumerationÀàµÄʵÀý
removeAttribute(String name)£ºÉ¾³ýapplication¶ÔÏóÖÐÃû×ÖΪnameµÄ´æ´¢Öµ
getInitParameter(String name)£º»ñÈ¡application¶ÔÏóÖÐÃû×ÖΪnameµÄ³õʼ´æ´¢Öµ
getServletInfo()£º·µ»ØServlet±àÒëÆ÷µ±Ç°°æ±¾ÐÅÏ¢
 


Ïà¹ØÎĵµ£º

Ààajax jsp ÎÞË¢ÐÂÉÏ´«Îļþ


  Ê×ÏÈҪ˵µÄ¾ÍÊÇ ajax ÊÇÎÞ·¨ÊµÏÖÉÏ´«ÎļþµÄ£¬¿ÉÒÔÏëÒ»ÏÂajaxÓëºǫ́ͨÐŶ¼ÊÇͨ¹ý´«µÝ×Ö·û´®£¬ÔõôÄÜ´«µÝÎļþÄØ£¿Æäʵ³öÓÚ°²È«¿¼ÂÇjsÊDz»ÄܲÙ×÷ÎļþµÄ£¬ËùÒԾͲ»ÒªÔÙ˵ÓÃajaxÀ´ÊµÏÖÎļþµÄÉÏ´«ÁË£¬ÕâÊDz»¿ÉÄܵġ£
    ¶ø±¾ÎÄʵÏÖµÄÎļþÉÏ´«Ò²ÊÇÎÞÒ³ÃæË¢Ðµģ¬¿ÉÒÔ˵ÊÇÒ»ÖÖ"ÀàËÆAJAX"·½·¨¡£
 &n ......

ASPÓëJSPµÄ±È½Ï

ASPÓëJSPµÄ±È½Ï
´Ó΢ÈíÍÆ³öÁËASP(ActiveServerPage)ºó£¬ËüÒÔÆäÇ¿´óµÄ¹¦ÄÜ£¬¼òµ¥Ò×ѧµÄÌØµã¶øÊܵ½¹ã´óWEB¿ª·¢ÈËÔ±µÄϲ»¶¡£µ«ÊÇËüÈ´ÓÐ΢Èí²úÆ·µÄͨ²¡,Ö»ÄÜÔÚWindowsƽ̨ÏÂʹÓã¬ËäÈ»Ëü¿ÉÒÔͨ¹ýÔö¼Ó¿Ø¼þ¶øÔÚLINUXÏÂʹÓ㬵«ÊÇÆä¹¦ÄÜ×îÇ¿´óµÄDCOM¿Ø¼þÈ´²»ÄÜʹÓ᣶øSUN¹«Ë¾ÔÚJAVAµÄ»ù´¡Ï¿ª·¢³öµÄJSP(Java ServerPages)ʵÏÖÁ˶ ......

jsp¹ýÂËÆ÷¼òд

package com.pan.encod;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
public class EncodFilter impl ......

jsp:forward±êÇ©

jsp:forward±êÇ©ÓÃÓÚ½«µ±Ç°µÄJspÒ³ÃæÌø×ªµ½ÁíÒ»¸öÒ³ÃæÉÏ£¬¸ÃÖ¸ÁîÖ»ÄÜʵÏÖ±¾ÍøÕ¾µÄÌø×ª
1.Ìø×ªµÄÒ³ÃæÎª¾²Ì¬Ò³ÃæÊ±µÄ¸ñʽ£º
     <jsp:forward page="Ìø×ªµÄ¾²Ì¬Ò³ÃæÎļþÃû" />
2.Ìø×ªµÄÒ³ÃæÎª¶¯Ì¬Ò³ÃæÊ±µÄ¸ñʽ
     <jsp:forward page="Ìø×ªµÄ¶¯Ì¬Ò³ÃæÎļþÃû">
&n ......

jsp:forward±êÇ©Óëresponse.sendRedirect()µÄÇø±ð

1. jsp:forward±êǩֻÄÜʵÏÖ±¾ÍøÕ¾ÄÚµÄÌø×ª£¬¼´ä¯ÀÀÆ÷ÉÏÏÔʾµÄÒÀÈ»ÊÇ֮ǰ¿Í»§¶ËµÄÒ³ÃæÎļþÃû£¬¶ø²»ÊÇÌø×ªºóµÄÒ³ÃæÎļþÃû
    ¶øresponse.sendRedirect()¿ÉÒÔÌø×ªµ½ÈκÎÒ»¸öµØÖ·µÄÒ³Ãæ£¬ÇÒä¯ÀÀÆ÷ÉÏÏÔʾµÄÊÇÌø×ªºóµÄÒ³ÃæÎļþÃû
2. µ±ÔÚ֮ǰµÄ¿Í»§¶ËÒ³ÃæÎļþÖÐʹÓÃresponse.setAttribute()´æ´¢ÁËij¸öÖµºó£¬Ê¹ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ