JSP Ò³Ã滺´æÒÔ¼°Çå³ý»º´æ
Ò»¡¢¸ÅÊö
»º´æµÄ˼Ïë¿ÉÒÔÓ¦ÓÃÔÚÈí¼þ·Ö²ãµÄ¸÷¸ö²ãÃæ¡£ËüÊÇÒ»ÖÖÄÚ²¿»úÖÆ£¬¶ÔÍâ½ç¶øÑÔ£¬ÊDz»¿É¸ÐÖªµÄ¡£
Êý¾Ý¿â±¾ÉíÓлº´æ£¬³Ö¾Ã²ãÒ²¿ÉÒÔ»º´æ¡££¨±ÈÈ磺hibernate£¬»¹·Ö1¼¶ºÍ2¼¶»º´æ£©
ÒµÎñ²ãÒ²¿ÉÒÔÓлº´æ£¨µ«Ò»°ãÀ´Ëµ£¬ÕâÊÇÒ»¸ö¹ý³ÌÓò£¬²»»áÉ軺´æ£©¡£
±íÏÖ²ã/Êý¾Ý·þÎñ²ã£¨´«Í³webµÄ±íÏֲ㣩Ҳ¿ÉÒÔÉèÖûº´æ£¨jsp cache ¾ÍÊÇÕâÒ»²ã£¬ÊµÏÖÔÚapp serverÉϵĻº´æ»úÖÆ£©
ÁíÍâBrowserÒ²Óлº´æ£¨ÈçIE£©Õâ¸ö´ó¼ÒÒ²¶¼ÖªµÀ£¨ÊµÏÖÔÚ web server ÉϵĻº´æ»úÖÆ£©¡£Ô½ÉϲãµÄ»º´æЧ¹ûÔ½ºÃ£¬Ô½µ×²ãµÄ»º´æÓ°ÏìÔ½ÉîÔ¶¡£
¶þ¡¢»º´æʵÏÖ£¨ä¯ÀÀÆ÷»º´æµ±Ç°·ÃÎʵÄJSP¶¯Ì¬Ò³Ã棩
£¨Ò»£©¡¢·þÎñ¶Ë·½·¨£º
<£¥
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", -10);
£¥>
£¨¶þ£©¡¢¿Í»§¶Ë·½·¨£º
metaÊÇÓÃÀ´ÔÚHTMLÎĵµÖÐÄ£ÄâHTTPÐÒéµÄÏìӦͷ±¨ÎÄ¡£meta ±êÇ©ÓÃÓÚÍøÒ³µÄ£¼head£¾Ó룼/head£¾ÖУ¬meta ±êÇ©µÄÓô¦ºÜ¶à¡£meta µÄÊôÐÔÓÐÁ½ÖÖ£ºnameºÍhttp-equiv¡£nameÊôÐÔÖ÷ÒªÓÃÓÚÃèÊöÍøÒ³£¬¶ÔÓ¦ÓÚcontent£¨ÍøÒ³ÄÚÈÝ£©£¬ÒÔ±ãÓÚËÑË÷ÒýÇæ»úÆ÷È˲éÕÒ¡¢·ÖÀࣨĿǰ¼¸ºõËùÓеÄËÑË÷ÒýÇ涼ʹÓÃÍøÉÏ»úÆ÷ÈË×Ô¶¯²éÕÒmetaÖµÀ´¸øÍøÒ³·ÖÀࣩ¡£ÕâÆäÖÐ×îÖØÒªµÄÊÇdescription£¨Õ¾µãÔÚËÑË÷ÒýÇæÉϵÄÃèÊö£©ºÍkeywords£¨·ÖÀà¹Ø¼ü´Ê£©£¬ËùÒÔÓ¦¸Ã¸øÿҳ¼ÓÒ»¸ömetaÖµ¡£±È½Ï³£ÓõÄÓÐÒÔϼ¸¸ö£º
name ÊôÐÔ
1¡¢£¼meta name="Generator" contect=""£¾ÓÃÒÔ˵Ã÷Éú³É¹¤¾ß£¨ÈçMicrosoft FrontPage 4.0£©µÈ£»
2¡¢£¼meta name="KEYWords" contect=""£¾ÏòËÑË÷ÒýÇæ˵Ã÷ÄãµÄÍøÒ³µÄ¹Ø¼ü´Ê£»
3¡¢£¼meta name="DEscription" contect=""£¾¸æËßËÑË÷ÒýÇæÄãµÄÕ¾µãµÄÖ÷ÒªÄÚÈÝ£»
4¡¢£¼meta name="Author" contect="ÄãµÄÐÕÃû"£¾¸æËßËÑË÷ÒýÇæÄãµÄÕ¾µãµÄÖÆ×÷µÄ×÷Õߣ»
5¡¢£¼meta name="Robots" contect="all|none|index|noindex|follow|nofollow"£¾
ÆäÖеÄÊôÐÔ˵Ã÷ÈçÏ£º
É趨Ϊall£ºÎļþ½«±»¼ìË÷£¬ÇÒÒ³ÃæÉϵÄÁ´½Ó¿ÉÒÔ±»²éѯ£»
É趨Ϊnone£ºÎļþ½«²»±»¼ìË÷£¬ÇÒÒ³ÃæÉϵÄÁ´½Ó²»¿ÉÒÔ±»²éѯ£»
É趨Ϊindex£ºÎļþ½«±»¼ìË÷£»
É趨Ϊfollow£ºÒ³ÃæÉϵÄÁ´½Ó¿ÉÒÔ±»²éѯ£»
É趨Ϊnoindex£ºÎļþ½«²»±»¼ìË÷£¬µ«Ò³ÃæÉϵÄÁ´½Ó¿ÉÒÔ±»²éѯ£»
É趨Ϊ
Ïà¹ØÎĵµ£º
JSPºÍSERVLETµ½µ×ÔÚÓ¦ÓÃÉÏÓÐʲôÇø±ð£¬ºÜ¶àÈ˸㲻Çå³þ¡£ÎÒÀ´ºú³¶¼¸¾ä°É¡£¼òµ¥µÄ˵£¬SUNÊ×ÏÈ·¢Õ¹³öSERVLET£¬Æ书ÄܱȽÏÇ¿¾¢£¬ÌåϵÉè¼ÆÒ²ºÜÏȽø£¬Ö»ÊÇ£¬ËüÊä³öHTMLÓï¾ä»¹ÊDzÉÓÃÁËÀϵÄCGI·½Ê½£¬ÊÇÒ»¾äÒ»¾äÊä³ö£¬ËùÒÔ£¬±àдºÍÐÞ¸ÄHTML·Ç³£²»·½±ã¡£
ºóÀ´SUNÍƳöÁËÀàËÆÓÚASPµÄÏâǶÐ͵ÄJSP£¬°ÑJSP TAGÏâǶµ½HTMLÓï¾äÖУ¬ÕâÑù£¬¾Í ......
¹Ø¼ü×Ö: jsp´«µÝÖÐÎIJÎÊý¡¢¿Õ¸ñÒÔ¼°±íµ¥ÄÚÈÝ»»ÐÐÎÊÌâ½â¾öС½á
ÔÚÀàËÆÁôÑÔ°åµÄwebÓ¦ÓÃÖУ¬ÐèÒª½«<textarea>ÖеĴó¶ÎÎÄ×ÖÏÔʾÔÚJspÒ³ÃæÉÏ£¬Òò´ËÐèÒª¶ÔÎÄ×ÖÖеÄÌØÊâ×Ö·ûÈç»»ÐС¢¿Õ¸ñµÄ×÷´¦Àí£¬·½·¨ÈçÏ£º
1¡¢Ö±½Ó±£´æ£¬È»ºóµ±´ÓÊý¾Ý¿âÖÐÈ¡³öÀ´Ê±ÓùýÂË·½·¨¹ýÂËÒ»±éÔÙËÍ»ØÒ³Ãæ¼´¿É£¬¸øÒ ......
½üÆÚµÄÒ»¸öÏîÄ¿ÐèҪʵÏÖÉãÏñͷͼÏñ²É¼¯£¬¾¹ýһϵÁеÄÕÛÌÚÒÔºó£¬ÖÕÓÚʵÏÖÁËÕâ¸ö¹¦ÄÜ£¬ÏÖÕûÀíһϡ£
±¾Éí¾Íjava¼¼ÊõÀ´Ëµ£¬ÒªÊµÏÖÉãÏñÍ·¶þ´Î¿ª·¢£¬²É¼¯ÉãÏñͷͼƬ£¬ÐèҪʹÓõ½JMF£¬JMFÊʺÏʹÓÃÔÚj2se³ÌÐòµ±ÖУ¬ÎÒÐèÒªÔÚweb³ÌÐòÖе÷ÓÃÉãÏñÍ·£¬ºÜÃ÷ÏÔJMFÊǸ㲻¶¨ÁË£¬Ïë¹ýдһ¸öapplet³ÌÐò£¬Ö»ÊÇÄǶ«Î÷ÒªÇó¿Í»§¶Ë±ØÐëÒªÓÐjre»·¾ ......
ת×Ô£ºhttp://blog.sina.com.cn/s/blog_5990faac0100dnfx.html
Cookie
£º·þÎñÆ÷ÔÚÒ»¸öÓ¦´ðÊײ¿´«µÝ¸øä¯ÀÀÆ÷µÄÃû³Æ
/
Öµ¶Ô¡£ä¯ÀÀÆ÷±£´æµÄʱ¼äÓÉ
cookie
µÄ¹ýÆÚʱ¼äÊôÐÔÀ´Ö¸¶¨¡£µ±ä¯ÀÀÆ÷Ïòij¸ö·þÎñÆ÷
·¢ËÍÒ»¸öÇëÇóʱ£¬Ëü»á¼ì²éÆä±£´æµÄ
cookie
£¬²¢ÔÚÇëÇóÊײ¿Öаüº¬´Óͬһ̨·þÎñÆ÷ÉϽÓÊÕµ½µÄËùÓÐ
cookie
¡£
Se ......
<c:if>ÓÃÓÚ
Á÷³Ì¿ØÖÆ
Óï·¨
1:
<c:if
test=”testCondition” var=”varName”
[scope=”page|request|session|application”]/>
Óï·¨
2:
<c:if
test=”testCondition” var=”varName”
[scope=&rdquo ......