jsp»º´æ´¦Àí
½ñÌì×ÜËã°Ñ
response.setHeader("progma", "no-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);Àí½âÁË¡£
//·¢ÏÖÎÊÌâÊÇÕâÑùµÄ
µ±ÎÒµã»÷ijһ¸öʵÌåʱ£¬×ª·¢µ½Ò»¸öÏêϸµÄÒ³Ã棬Õâ¸öÒ³Ãæ°üº¬ÁËÒ»¸öÓÃÓڼǼ·ÃÎÊ´ËÒ³ÃæµÄÈËÊýµÄÎı¾¿ò£¬
Ð޸Ĵ˷ÃÎÊÈËÊýºó£¬ÔÙÒ»´Îµã»÷´ËʵÌ壬תµ½´ËÏêϸҳÃæºó£¬·ÃÎÊÈËÊýûÓиı䣬(Êý¾Ý¿âÖÐÒѾ¸üÐÂ)£¬×îºó
ÎҰѵã»÷´ËÁ´½ÓµÄActionÖеķ½·¨µ÷³öÀ´£¬¼ÓÁËÉÏÃæ3ÌõÓï¾ä£¬½á¹ûOKÁË¡£Ì«¸ÐлÕâ3ÌõÓï¾äµÄ×÷ÓÃÁË¡£
Ïà¹ØÎĵµ£º
¸Ã±êÇ©ÓÃÓÚÔÚµ±Ç°µÄJspÒ³ÃæÖмÓÔØÁíÒ»¸ö¾²Ì¬»ò¶¯Ì¬µÄÎļþÒ³Ãæ
1.¾²Ì¬Îļþ¼ÓÔظñʽ
<jsp:include page=? flush="true/false" />
page£ºÓÃÓÚָʾ±»¼ÓÔصľ²Ì¬Ò³ÃæÎļþÃû
flush£ºÉèÖûº³åÇøÊÇ·ñ¿ÉÓÃ
2.¶¯Ì¬Îļþ¼ÓÔظñʽ
......
1. jsp:forward±êÇ©Ö»ÄÜʵÏÖ±¾ÍøÕ¾ÄÚµÄÌøת£¬¼´ä¯ÀÀÆ÷ÉÏÏÔʾµÄÒÀÈ»ÊÇ֮ǰ¿Í»§¶ËµÄÒ³ÃæÎļþÃû£¬¶ø²»ÊÇÌøתºóµÄÒ³ÃæÎļþÃû
¶øresponse.sendRedirect()¿ÉÒÔÌøתµ½ÈκÎÒ»¸öµØÖ·µÄÒ³Ã棬ÇÒä¯ÀÀÆ÷ÉÏÏÔʾµÄÊÇÌøתºóµÄÒ³ÃæÎļþÃû
2. µ±ÔÚ֮ǰµÄ¿Í»§¶ËÒ³ÃæÎļþÖÐʹÓÃresponse.setAttribute()´æ´¢ÁËij¸öÖµºó£¬Ê¹ ......
ÓеÄʱºò»áÍü¼Ç£¬¼Ç¼һÏ£º
<iframe id="xx" name="xx" width="515" height="177" scrolling="no" border="0" marginwidth="0" marginheight="0" frameborder="0" src="Xx.jsp"></iframe>
Ҫʹjsp²»±äÐΣ¬Ö÷ÒªÊÇmarginwidth="0" marginheight="0"Á½¸öÊôÐÔ¡£ ......
ºìÆì×ÀÃæLinux4.1Ï°²×°ºÍÅäÖÃJSP·þÎñÆ÷È«¹¥ÂÔ
ÕâÁ½ÌìÊÔ×ÅÔÚºìÆìLinux×ÀÃæ°æ4.1Ï°²×°WEB·þÎñÆ÷£¬Òѳɹ¦°²×°£¬ÏÖ°ÑÎҵݲװ¹ý³Ì½éÉÜÈçÏ£¬ÒÔ¸øÓÐÏàËÆÐèÇóµÄÍøÓѲο¼¡£
ÎҵݲװҪÇóÊÇÖ§³ÖJSP¡¢html¡¢htmÍøÒ³£¬ËùÒÔÑ¡ÓÃJDK1.5.0+Tomcat5.5.4+mySQL4.1.7£¬ÕâЩ¶¼Êǵ±Ç°¸÷Èí¼þ×îеÄÎȶ¨°æ±¾£¨·Ç²âÊ԰棩¡£ÔÝûÓа²×°Apacheº ......