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

ÎÒµÄJSPѧϰ±Ê¼Ç JSPÒ³ÃæÖеÄÖ¸Áî

JSPµÄÖ¸ÁîÊÇÓÃÀ´°üº¬ÍⲿÎļþ»òÊǽøÐÐÒ³ÃæÈ«¾ÖÉèÖõģ»ËüµÄÓÐÈýÖÖ£¬·Ö±ðÊÇpage£¬include£¬taglibÖ¸Áî
1.pageÖ¸Áî
 ÐÎÈç<%@page ÊôÐÔ='Öµ'    ÊôÐÔ='Öµ'   ........ %>
 ÊôÐÔÓУº
 language=''java''   £º É趨jspÒ³ÃæµÄ½Å±¾ÓïÑÔ£¬Ä¿Ç°Ö»Ö§³Öjava£¬Ä¬ÈÏÊÇjava
 contentType=''contentinfo''    £º  ÓÃÀ´É趨MIMEÀàÐͺÍJSPÒ³ÃæµÄ±àÂ뷽ʽ
 import=''packageList''   £º ͬjavaÀïµÄimport£¬ÓÃÀ´µ¼Èëjava api
 session=''true|false''    £º  É趨´ËÍøÒ³ÊÇ·ñ¿ÉÒÔʹÓÃsession¶ÔÏó£¬Ä¬ÈÏΪtrue
 errorPage=''uri''            £º É趨ҳÃæ·¢ÉúÒ쳣ʱ½«ÒªÖض¨ÏòµÄuri
 isErrorPage=''true|false''    £º É趨ÊÇ·ñΪÓÃÀ´´¦ÀíÒì³£´íÎóµÄÒ³Ã棬ĬÈÏfalse
 buffer=''none|sizekb''         £ºÉ趨ʹÓõÄÊä³ö»º³åÇø´óС£¬Ä¬ÈÏÊÇ8kb£¬ÉèΪnoneʱ²»ÊÊÓûº³åÇø
 autoFlush=''true|false''      £º ÊÇ·ñ×Ô¶¯Ë¢Ð»º³åÇø
 isELIgnored=''true|false''      £º ÊÇ·ñºöÂÔEL±í´ïʽ£¬Ä¬ÈÏfalse
2.include Ö¸Áî
ÐÎÈç<%@include file=''±»°üº¬Îļþurl'' %>
ÀàËÆc++ÀïÃæµÄ#include<....>£¬¾ÍÊǽ«ÎļþÄÚÈÝÔ­·â²»¶¯µÄ°üº¬½øÀ´£¬²»×öÈκÎÐÞ¸Ä
3.taglibÖ¸Áî
ÐÎÈç<@taglib uri=''tagÎļþµÄuri''  prefix=''ǰ׺'' %>
taglibÊÇÓÃÀ´ÒýÈë±êÇ©¿â£¬´Ó¶øʹÓÃÆäÖеıêÇ©£¨tag£©£¬´Ó¶ø·½±ã¿ª·¢µÄ¡£taglibµÄÒýÈëÀàËÆÃüÃû¿Õ¼äµÄÒýÈ룬ʹµÃ±êÇ©¿âÖеıêÇ©¶¼ÄÜʹÓÃËùÖ¸¶¨µÄ''ǰ׺''À´ÒýÓÃʹÓã¬ËûÖ÷ÒªÓÃÀ´ÒýÈëһЩ±ê×¼±ê¼Ç¿âºÍ×Ô¶¨Òå±ê¼Ç¿â£¬ÒÔ¼°ÆäËûµÄһЩ±ê¼Ç¿â¡£


Ïà¹ØÎĵµ£º

JSPÖеÄEL±í´ïʽÏêϸ½éÉÜ

來Ô´£ºhttp://www.diybl.com/course/4_webprogram/jsp/jsp_js/2008229/102031.html
Ò»¡¢JSP ELÓïÑÔ¶¨Òå
        E L£¨Expression Language£©  Ä¿µÄ£ºÎªÁËʹJSPдÆðÀ´¸ü¼Ó¼òµ¥¡£
      
±í´ïʽÓïÑÔµÄÁé¸ÐÀ´×ÔÓÚ ECMAScript ºÍ XPath ......

jsp/servletÖеĹýÂËÆ÷FilterÅäÖÃ×ܽá

ÔÚJava web¿ª·¢Öг£»áʹÓõ½¹¦ÄÜÇ¿´óµÄ¹ýÂËÆ÷£¬Ëû±Ï¾¹ÄܸøÎÒÃÇ´øÀ´ºÜ´óµÄ·½±ã£¬µ«ÊÇÕë¶Ô¹ýÂ˵Ä×ÊÔ´ÎÒÃÇÐèÒªÏêϸµÄÁ˽âËûÃÇÔÚweb.xmlÖеÄÅäÖÃÐÅÏ¢¡£Õâ¸ö¸ù¾Ý¼¸ÖÖ³£ÓõIJ»Í¬Çé¿ö½øÐÐÁË×ܽ᣺
1.Èç¹ûÒªÓ³Éä¹ýÂËÓ¦ÓóÌÐòÖÐËùÓÐ×ÊÔ´£º
<filter>
    <filter-name>loggerfilter</filter-name> ......

jsp ÍøÂç

 ÔÚtomcatÏÂÕÒµ½tomcat -> conf -> server.xml ÔÚÕâÒ»¾äÖÐÌí¼ÓºìÉ«²¿·Ö
<Connector connectionTimeout="20000" port="9090" protocol="HTTP/1.1" redirectPort="8443" useBodyEncodingForURI="true"
/> <!--URLEncoding=""--> ± ......

JSPÂÒÂëÖÕ¼«½â¾ö£¨ÊµÓã©

 JspÊÇÒ»¸öºÜÈÈÃŵĻ°Ì⣬µ«Èôó¶àÊýÈ˶¼Í·Í´µÄÊÇJSPÒ³ÃæÖеÄÂÒÂëÎÊÌ⣬±ÊÕßÉíÓÐÌå»á£»ÔøΪÁ˽â¾öÖÐÎÄÂÒÂëÎÊÌâÓôÃÆÁ˺ü¸Ì죬ÊÔÁ˺ܶ෽·¨¶¼²»ÐС£×îºóÔÚJSPרҵÈËÊ¿µÄ°ïÖúÏ£¬ÖÕÓÚ½â¾ö¡£Ö®ºó±ÊÕßÔø¶Ô´Ë×öÁËһЩСµÄÑо¿¡£  
  Ê×ÏÈÎÒÃÇÏÈÁ˽âÒ»ÏÂÎÊÌâµÄÔ­Òò¡£Ò»°ãÇé¿öÔÚÔÚÿ¸öJSPÒ³µÄÍ·²¿¶¼ÓÐÕâÑùÒ» ......

ÀûÓÃJSP£¬·ÀÖ¹Öظ´Ìá½»µÄÎÊÌâ

    Ò»°ã£¬ÔںܶàÓ¦ÓÃϵͳÖУ¬Óû§¶à´ÎÌá½»Öظ´Êý¾ÝÊÇÒ»¸öºÜÑÏÖصÄÎÊÌ⣬»áµ¼ÖÂÓ¦ÓÃϵͳÖкܶàÀ¬»øÊý¾Ý£¬ÔÚStrutsÖпò¼ÜÖУ¬ÓÐTOKEN»úÖÆÀ´·ÀÖ¹Óû§Ìá½»Öظ´Êý¾Ý£¬ÕâÊÇÒ»¸öºÜºÃµÄ°ì·¨£¬µ«ÊÇ£¬TOKEN»úÖƱØÐëµÃÓõ½html:form±êÇ©£¬ÎÒ²»Ï²»¶ÓÃÕâ¸ö±êÇ©£¬ÎÒ¾õµÃÊÇÒ»¸öÀÛ׸£¬ËùÒÔÎÒÈ¥µôHTML:FORM±êÇ©£¬ÖØж¨ÒåTOK ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ