JSP ÏÐʽעÊÍ ÒþʽעÊӵIJî±ð
½ñÌì¸ÕÇÉÅöµ½ºÍJSP×¢ÊÍÓеã¹ØϵµÄÒ»¸öÎÊÌâ¡£ËùÒÔ×ö¸ö±Ê¼Ç£¬ËµÃ÷Ò»ÏÂÏÔʽעÊÍ<!-- comments --> ºÍÒþʽעÊÍ<%-- comments --%> Ö®¼äµÄÁ½µã²î±ð¡£
Ôø¾ÒÔΪÏÔʽעÊͺÍÒþʽעÊͲî±ðÖ»ÓÐÔÚ´úÂëÏÔʾÉÏ£¬ÕâµãÓ¦¸Ã´ó¼Ò¶¼ÖªµÀ£¬ÏÔʽעÊÍ»áÏÔʾÔÚ¿Í»§¶ËÒ³ÃæÔ´ÂëÖУ¬¶øÒþʽעÊÍÊÇ¿´²»µ½µÄ£¬²»¹ýÕâÖ»ÊǵÚÒ»µã¡£
Ö®ËùÒÔ·¢ÏÖÁ˵ڶþµã²î±ð£¬ÊÇÒòΪÅöµ½ÁËÒ»¸öÎÊÌâ¡£³ÌÐòÖеĹÊÊÂÊÇÕâÑùµÄ£¬a.jspÒ³ÃæÔø¾include ÁËb.jsp£¬µ«ÊÇÏÖÔÚÒѾÓÃ<!-- -->°ÑÄǶÎinclude×¢Ê͵ôÁË£¬¶øÒòΪÔÚb.jspÖгöÁËÒ»¸öNullPointerException£¬ÒÔÖÁÓÚ´ò¿ªa.jspµÄʱºò±¨³ö Error500£¬¶øÇÒÕÒ²»µ½Ã÷È·µÄÓëa.jsp»òÕßb.jspÏà¹ØµÄlog¡£
¾¹ý2¸öСʱµÄÖðÏîÅŲ飬ËùÐÒµÄÊÇÕÒµ½Á˴𰸣¬²¢ÇÒÁ˽âÁËÁ½ÖÖ×¢Ê͵ÄÁíÒ»µã²î±ð£¨ÖصãÔÚÕâÀ£¬¼´ÏÔʽעÊͻᱻJSPÒýÇæ½âÊÍ£¬¾ÍÊÇ˵עÊÍÖеĴúÂ뻹ÊÇ»áÈ¥Ö´Ðеģ¬±ÈÈ磺<!-- ±¾ÎļþµÄ¼ÓÔØÈÕÆÚ <%= (new.java.util.Date()).toLocalString() %> --> »áÏÔʾµ±Ê±µÄ¾ßÌåʱ¼ä¡£¶øÒþʽעÊÍÊDZ»ÍêÈ«ºöÂÔ£¬JSPÒýÇæÖ±½Ó¾Í¹ýÂË¡£
±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£ºhttp://blog.csdn.net/bocaicbl/archive/2009/09/27/4602713.aspx
Ïà¹ØÎĵµ£º
ÔÚServlet/JSPѧϰ±Ê¼Ç(1)-tomcatºÍeclipseµÄ°²×°ÖУ¬ÎÒ½éÉÜÁËeclipseºÍtomcatPluginµÄ°²×°ºÍÅäÖ÷½·¨¡£µ«½ñÌì·¢ÏÖ£¬Ê¹ÓÃtomcatPlugin´´½¨ÏîĿʱ£¬²»»á×Ô¶¯Éú³Éweb.xml£¬ÐèÒªÊÖ¹¤±à¼£¬Õâ¶àÉÙÓÐЩ²»·½±ã¡££¨¹ØÓÚweb.xmlµÄ¼òµ¥½éÉܲο¼ÕâÀï¡££©
ʵ¼ÊÉÏ£¬¿ª·¢ºÍµ÷ÊÔServlet/JSP³ÌÐòʱ£¬Ò»¸ö½Ð×öLombozµÄ²å¼þ¸üΪǿ´ó¡¢¸üºÃÓà ......
½éÉÜÍ깤¾ßºÍ»ù±¾¸ÅÄÏÖÔÚÖÕÓÚ¿ªÊ¼½éÉÜServletµÄ±àд·½·¨ÁË¡£ÎªÁ˱ãÓÚÀí½â£¬ÎÒÃǽ«²ÉÓÃeclipse+Lomboz×÷Ϊ¿ª·¢»·¾³£¬Ò»ÇеIJÙ×÷¶¼¿ÉÒÔÔÚeclipseÖÐÍê³É¡£Èç¹ûÄ㻹ûÓа²×°ºÃLomboz£¬Çë²Î¿¼Ç°¼¸ÆªÎÄÕÂÅäÖúû·¾³¡£
tomcatºÍeclipseµÄ°²×°
»ù´¡ÖªÊ¶
Lomboz½éÉÜ+°²×°·½·¨
ÎÒÃǽ«½¨Á¢Ò»¸öÃûΪ com.idv2.learnjsp µÄ°ü£¬Ó ......
ÎÒÃǶ¼ÖªµÀÔÚjspÖÐincludeÓÐÁ½ÖÖÐÎʽ,·Ö±ðÊÇ
¡¡¡¡< %@ include file=” ”%>
¡¡¡¡< jsp:include page=” ” flush=”true”/>
¡¡¡¡Ç°ÕßÊÇÖ¸ÁîÔªËØ¡¢ºóÕßÊÇÐÐΪԪËØ¡£¾ßÌåËüÃǽ«Ôںδ¦Óã¿ÈçºÎÓü°ËüÃÇÓÐʲôÇø±ð£¿ÕâÓ¦¸ÃÊǺܶàÈË¿´µ½Ëü¶¼»áÏëµ½µÄÎÊÌâ¡£ÏÂÃæÒ»ÆðÀ´¿´¿´°É ......
JFreeChart ÊÇÒ»¸ö¿ªÔ´µÄ JAVA ÏîÄ¿£¬ËüÖ÷ÒªÓÃÀ´¿ª·¢¸÷ÖÖ¸÷ÑùµÄͼ±í£¬ÕâЩͼ±í°üÀ¨£º±ýͼ¡¢Öù״ͼ ( ÆÕͨÖù״ͼÒÔ¼°¶ÑÕ»Öù״ͼ ) ¡¢Ïßͼ¡¢ÇøÓòͼ¡¢·Ö²¼Í¼¡¢»ìºÏͼ¡¢¸ÊÌØͼÒÔ¼°Ò»Ð©ÒDZíÅ̵ȵȡ£ÔÚÕâЩ²»Í¬Ê½ÑùµÄͼ±íÉÏ¿ÉÒÔÂú×ãÄ¿Ç°ÉÌҵϵͳµÄÒªÇó¡£ JFreeChart ÊÇÒ»ÖÖ»ùÓÚ JAVA ÓïÑÔµÄͼ±í¿ª·¢¼¼Êõ¡£ JFr ......
(תÔرêÇ©£ºfckeditorit ·ÖÀࣺJava)
1.½«FCKeditorĿ¼ÏµÄeditor¿½±´µ½ÏîÄ¿µÄWebContentĿ¼ÏÂ
2.²¢°ÑECKeditor-2.3.jar ºÍ commons-fileupload.jar¿½±´µ½ÏîÄ¿\WebContent\WEB-INF\libĿ¼ÏÂ
3.°Ñ FCKeditor.tld¿½±´µ½ÏîÄ¿\WebContent\WEB-INFÏÂ
4.ÔÚweb.xmlÀïÌí¼ÓÈçÏ´úÂë
´úÂë
<servlet> ......