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

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


Ïà¹ØÎĵµ£º

FCKeditor2.6 for JSP ÅäÖ÷½·¨

1¡¢Ê×Ïȵǽwww.fckeditor.net/downloadÏÂÔØFCKeditorµÄ×îа汾£¬ÐèÒªÏÂÔØ2¸öѹËõ°ü£¬Ò»¸öÊÇ»ù±¾Ó¦Óã¬ÁíÒ»¸öÊÇÔÚΪÔÚjspÏÂËù×¼±¸µÄÅäÖá£
      FCKeditor 2.6 ÏÂÔصØÖ·£ºsourceforge.net/project/downloading.php
      FCKeditor.Java ÏÂÔصØÖ·£ºsourceforge.net/ ......

JSPÖÐincludeÖ¸ÁîºÍincludeÐÐΪµÄÇø±ð


ÎÒÃǶ¼ÖªµÀÔÚjspÖÐincludeÓÐÁ½ÖÖÐÎʽ,·Ö±ðÊÇ
¡¡¡¡< %@ include file=” ”%>
¡¡¡¡< jsp:include page=” ” flush=”true”/>
¡¡¡¡Ç°ÕßÊÇÖ¸ÁîÔªËØ¡¢ºóÕßÊÇÐÐΪԪËØ¡£¾ßÌåËüÃǽ«Ôںδ¦Óã¿ÈçºÎÓü°ËüÃÇÓÐʲôÇø±ð£¿ÕâÓ¦¸ÃÊǺܶàÈË¿´µ½Ëü¶¼»áÏëµ½µÄÎÊÌâ¡£ÏÂÃæÒ»ÆðÀ´¿´¿´°É ......

Á˽âJSPÖÐrequestÊôÐÔµÄÓ÷¨


±¾ÎĽéÉÜJSPÖÐrequestÊôÐÔµÄÓ÷¨£¬ÒÔ¼°request.getParameter() ºÍrequest.getAttribute() Çø±ð¡£
Ò»¡¢request.getParameter() ºÍrequest.getAttribute() Çø±ð
1.request.getParameter()È¡µÃÊÇͨ¹ýÈÝÆ÷µÄʵÏÖÀ´È¡µÃͨ¹ýÀàËÆpost£¬getµÈ·½Ê½´«ÈëµÄÊý¾Ý£¬request.setAttribute()ºÍgetAttribute()Ö»ÊÇÔÚwebÈÝÆ÷ÄÚ²¿Á÷ת£¬½ ......

JspÖÐFileUpload¿Ø¼þµÄʹÓÃ

       Ðí¾ÃûÓеǼ×Ô¼ºµÄУÄÚÍøÁË£¬½ñÌìµÇ¼ÁËһϣ¬ºöÈ»·¢ÏÖУÄÚµÄÉÏ´«ÕÕƬͦÓÐÒâ˼µÄ£¬ÓÚÊǺõ¾Í´ÓÍøÉÏÕÒÁËһϣ¬Ð£ÄÚÓ¦¸ÃÊÇʹÓÃjspдµÄ¡£ÔÚÍøÉÏÕÒµ½Á˸öFileUpload¿Ø¼þ£¬¿ÉÒԺܷ½±ãµÄÉÏ´«Îļþ¡£ÔÚÍøÉÏÕÒµ½Ò»ÆªÏêϸ½éÉÜÕâ¸ö¿Ø¼þʹÓõģ¬ÊÔÑéÁËһϣ¬¸ãÁ˺þòÅʵÏÖÏÖÔÚÕûÀí³öÀ´¡£
Ò»¡¢Ê× ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ