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

weblogicÓëwebsphereµÄ²îÒì Ö® jspÖеÄ×¢ÊÍÎÊÌâ

    ½ñÌì²âÊÔÈËÔ±¸øÎÒÌáÁËÒ»¸öbug£¬ËµÎÒ¿ª·¢µÄÄ£¿é±¨¿ò¼ÜµÄjs´íÎ󣬵±Ê±Ò»Ìý¾ÍãÂÁË£¬ÎÒ±¾µØ²âÊÔÍêȫûÎÊÌ⣬ÔõôÉÏÁË·þÎñÆ÷»á³öÏÖÕâ¸öÎÊÌâÄØ£¿
    ÓÚÊÇÎÒÈ¥·þÎñÆ÷ÉϲâÁËÒ»ÏÂ×Ô¼ºÐ´µÄÄǸöÄ£¿é£¬½á¹û±¨µÄ´íÎ󻹺ͲâÊÔÈËÔ±Ìá¸øÎҵĴíÎó²»Ò»Ö£¬ÔÓ»ØÊ£¿ÓÚÊÇÎÒÓÖÕÒµ½Ò»ÃûͬÊ£¬ÈÃËû°ïÎÒ²âһϣ¬±¨µÄ´íÎóÓÖÊÇÁíÍâÒ»¸ö°æ±¾£¬ÕâϸãÁË¡£
    û°ì·¨£¬jsµ÷ÊÔ°É£¬½á¹ûµ÷ÊÔÁË°ëÌ죬ûÓÐÈκνá¹û£¬¼ÈÈ»ÎÒÕâ±ßµÄ´íÎóµ÷ÊÔ²»³öÀ´½á¹û£¬¾ÍÅÜȥͬʵĻúÆ÷Éϵ÷ÁË£¬¹ýÁ˺ðëÌ죬ÖÕÓÚ·¢ÏÖÁËÒ»¸öÎÊÌ⣬¾ÍÊÇÎÒµÄjspÒ³ÃæÖÐÓв¿·Ö´úÂë·ÏÆúÁË£¬±»ÎÒ×¢Ê͵ôµÄ²¿·Ö±¨´í£¬º¹……
    ½á¹ûÃ÷ÁËÁË£¬ÓÉÓÚ±¾µØÓõÄÊÇweblogic·þÎñÆ÷£¬¶ÔjspµÄ½âÎöÓë·þÎñÆ÷ÉϵÄwebsphere²»Í¬£¬ÂíÉϽ«Ò³ÃæËùÓеÄ×¢ÊÍÈ«²¿È¥µô£¬µÈ·þÎñÆ÷ÖØдò°ü²âÊÔºó£¬ÖÕÓÚÎÊÌâ½â¾öÁË¡£
    Õâ¼þÊ£¬ÔÙ´ÎÖ¤Ã÷Á˱£Ö¤´úÂëµÄ¸É¾»Õû½àÊǶàôµÄÖØÒª£¬ÀË·ÑÁË´ó°ëÌìµÄ¹¤×÷ʱ¼ä£¬ÎÊÌâ¾ÍÔÚ´úÂëµÄ×¢ÊÍÉÏ£¬Ï£Íû¿´µ½´ËÎÄÕµÄÅóÓÑÃǽñºó²»ÒªÔÙ³öÏÖÀàËÆÎÊÌ⣬µ¢Îóʱ¼ä……


Ïà¹ØÎĵµ£º

jsp¾ÅÖÖÄÚÖöÔÏó

request, reponse, out, session, application, config, pagecontext, page, exception.

Ò».request¶ÔÏ󣺸öÔÏó·â×°ÁËÓû§Ìá½»µÄÐÅÏ¢£¬Í¨¹ýµ÷ÓøöÔÏóÏàÓ¦µÄ·½·¨¿ÉÒÔ»ñÈ¡·â×°µÄÐÅÏ¢£¬¼´Ê¹ÓøöÔÏó¿ÉÒÔ»ñÈ¡Óû§Ìá½»ÐÅÏ¢¡£
1.Request¶ÔÏó¿ÉÒÔʹÓÃgetParameter(string s)·½·¨»ñÈ¡¸Ã±íµ¥Í¨¹ýtextÌá½»µÄÐÅÏ¢¡£È磺
Requ ......

JSPÖеÄpageEncodingºÍ contentTypeÊôÐÔ

JSPÖеÄpageEncodingºÍ contentTypeÊôÐÔ
¹ØÓÚJSPÒ³ÃæÖеÄpageEncodingºÍcontentTypeÁ½ÖÖÊôÐÔµÄÇø±ð£º
pageEncodingÊÇjspÎļþ±¾ÉíµÄ±àÂë contentTypeµÄcharsetÊÇÖ¸·þÎñÆ÷·¢Ë͸ø¿Í»§¶ËʱµÄÄÚÈݱàÂë JSPÒª¾­¹ýÁ½´ÎµÄ“±àÂ딣¬µÚÒ»½×»áÓÃpageEncoding£¬µÚ¶þ½×¶Î»áÓÃutf-8ÖÁutf-8£¬µÚÈý½×¶Î¾ÍÊÇÓÉTomcat³öÀ´µÄÍøÒ³ ......

jspÁ¬½ÓÊý¾Ý¿â´óÈ«

ÏÖÔÚÓкöà³õѧjspµÄÍøÓѾ­³£»áÎÊÊý¾Ý¿âÔõôÁ¬½Ó°¡£¬ÔõôÀϳö´í°¡£¿ËùÒÔÎÒ¼¯ÖеÄÔÚÕâдƪÎÄÕ¹©´ó¼Ò²Î¿¼£¬ÆäʵÕâÖÖ°ÑÊý¾Ý¿âÂß¼­È«²¿·ÅÔÚjspÀïδ±ØÊǺõÄ×ö·¨£¬µ«ÊÇÓÐÀûÓÚ³õѧÕßѧϰ£¬ËùÒÔÎÒ¾ÍÕâÑù×öÁË£¬µ±´ó¼Òѧµ½Ò»¶¨³Ì¶ÈµÄʱºò£¬¿ÉÒÔ¿¼ÂÇÓÃMVCµÄģʽ¿ª·¢¡£ÔÚÁ·Ï°ÕâЩ´úÂëµÄʱºò£¬ÄãÒ»¶¨½«jdbcµÄÇý¶¯³ÌÐò·Åµ½·þÎñÆ÷µÄÀà·¾ ......

JSP»ù´¡

Ò»¡¢JSP¼ò½é
JSP (Java Server Pages)ÊÇ·þÎñÆ÷¶ËµÄ½Å±¾ÓïÑÔ£¬ÊÇÒ»ÖÖÔÚHTMLÒ³ÃæÖмÓÈëJavaÓïÑÔ¶øÉú³É¶¯Ì¬Ò³ÃæµÄ¼¼Êõ£º¼ÓÈëÁËеıêÇ©£¨<%£¬%>£¬…£©¡£
JSPÊÇÒÔJavaºÍServletΪ»ù´¡¿ª·¢¶ø³ÉµÄ¶¯Ì¬ÍøÒ³Éú³É¼¼Êõ£¬ËüµÄµ×²ãʵÏÖÊÇJava Servlet¡£
JSPÒ³ÃæÓÉHTML´úÂëºÍǶÈëÆäÖеÄJava´úÂëËù×é³É¡£·þÎñÆ÷ÔÚÒ³Ãæ±»¿Í» ......

jspѧϰ


 <c:if>ÓÃÓÚ
Á÷³Ì¿ØÖÆ
  
Óï·¨
1:
<c:if
test=”testCondition” var=”varName”
[scope=”page|request|session|application”]/>
  Óï·¨
2:
  <c:if
test=”testCondition” var=”varName”
[scope=&rdquo ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ