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

[ת¡¿Ñ§Ï°jspÐĵÃ

jspѧϰÐĵÃ
    ѧϰJSP¼¼ÊõÒ²¿ì°ëÄê¶àÁ˰ɣ¬×Ô¼ºÒ²¶¯ÊÖ±àдÁËһЩ¼òµ¥µÄ¶¯Ì¬ÍøÒ³°É¡£ÖÚËùÖÜÖª¶¯Ì¬ÍøÒ³Èý´ó¼¼ÊõASP£¬JSP£¬PHP»ù±¾ÉÏÊÇÈý·ÖÌìÏ£¬µ±È»»¹ÓÐÆäËûÓïÑÔÏñRuby£¬PythonµÈÒ²Õ¼¾Ý²»Ð¡µÄ·Ý¶î¡£
   ѧϰJSP¹ý³ÌÖÐÎҸд¥×îÉîµÄÊÇÈçϼ¸µã£º
  1.JSPÊÇÒ»ÖÖ±íʾ²ãµÄ¼¼Êõ
   ÎÒÈÏΪÈç¹û²»ÖªµÀJSTLºÍEL±í´ïʽ¸ù±¾Ëµ²»ÉÏѧºÃÁËJSP¼¼Êõ¡£Ñ§¹ýJSPÒ»¶¨¶ÔÕâЩ½Å±¾ÔªËغÜÊìϤ:
   (1)<%!  %> ÉùÃ÷½Å±¾ÔªËØ
   (2)<%=  %> ±í´ïʽ½Å±¾ÔªËØ
   (3)<%   %> scriptlet½Å±¾ÔªËØ
   ¿ÉÒÔÔÙÕâЩ½Å±¾ÔªËØÖÐÖ±½Ó²åÈëJava´úÂ룬ÓÃÓÚÁ÷³Ì¿ØÖƺÍÓ¦ÓÃÂß¼­£¬¿´ËÆÊ®·Ö¼òµ¥ºÍ·½±ã£¬µ«Ç¡Ç¡ÕâЩ½Å±¾ÔªËØçèÎÛÁ˱íʾ²ã¡£ÕâЩ½Å±¾ÔªËØÊÇJSPÔçÆÚ°æ±¾ÒÅÁôÏÂÀ´µÄÎÊÌ⣬ÔÚJSP2.0ÖÐÒýÈëÁËEL²¢½áºÏJSTL»ù±¾ÉϽâ¾öÁËÉÏÊöÎÊÌ⣬ʹµÃÎÒÃÇ¿ÉÒÔ±à³ö²»º¬Óнű¾µÄJSP´úÂ룬ÈÃJSPÊÇÕæÕýÒâÒåÉÏÊÇÓÃÓÚ±íʾ¡£
  2.JSPʵÖÊÊÇServlet
   ´ËÍâÈç¹û²»ÊìϤServletÒ²³Æ²»ÉϾ«Í¨JSP£¬¾¿Æä±¾ÖÊÀ´¿´JSP×îÖÕÒª±àÒë³ÉJava×Ö½ÚÂë¼´.classÎļþ¡£´ó¼Ò¿ÉÒÔÔÚTomcat 6.0\work\Catalina\localhost\xx(¹¤³ÌÃû)\apache\jspÏ·¢ÏÖËùÓÐ.jspÎļþ¶¼±»±àÒë³É.classÎļþ£¬¶øÕâЩÀàʵÖʶ¼ÊǼ̳Ð×ÔServlet¡£ÓÐÐËȤ´ó¼Ò¿ÉÒÔ°ÑÕâЩÎļþ·´±àÒë¿´¿´¡£
  ×îºóÎÒ°ÑÎÒѧϰÖеÄÁ½±¾Ñ§ÍƼö¸ø´ó¼Ò°É¡¶JSP³ÌÐòÉè¼Æ¡·ºÍ¡¶JSP¸ß¼¶³ÌÐòÉè¼Æ¡·´ó²¿·ÖÐĵö¼ÊÇÊÜÊéµÄÓ°Ï죡£¡


Ïà¹ØÎĵµ£º

jsp notes

<%@   page   c   language="java"%>  
  <%@   page   import="com.dragon.*"   %>  
  <%@   page   import="lotus.domino.*"   %>  
  <%!  ......

JSP/Servlet£ºServlet/JSP»á»°¸ú×Ù»úÖÆ

JSP/Servlet£ºServlet/JSP»á»°¸ú×Ù»úÖÆ
ÔÚWeb·þÎñÆ÷¶Ë±à³ÌÖУ¬»á»°×´Ì¬¹ÜÀíÊÇÒ»¸ö¾­³£±ØÐ뿼ÂǵÄÖØÒªÎÊÌâ¡£±¾ÎÄ·ÖÎöJSP/ServletµÄ»á»°¹ÜÀí»úÖÆ¼°ÆäËùÃæÁÙµÄÎÊÌ⣬ȻºóÌá³öÁËÒ»ÖָĽøµÄ»á»°¹ÜÀí·½·¨¡£
Ò»¡¢ServletµÄ»á»°¹ÜÀí»úÖÆ
ÔÚWeb·þÎñÆ÷¶Ë±à³ÌÖУ¬»á»°×´Ì¬¹ÜÀíÊÇÒ»¸ö¾­³£±ØÐ뿼ÂǵÄÖØÒªÎÊÌâ¡£±¾ÎÄ·ÖÎöJSP/ServletµÄ ......

Java¡¢JSP¡¢HTML¡¢XML±àд¶¼Òª·ûºÏÒÔϱàÂë¹æÔò£¡

1 ËùÓÐµÄ .java|.jsp|.html|.xml Ô´Îļþ¾ùʹÓÃutf-8±àÂë¸ñʽ±£´æµ½ÏµÍ³´ÅÅÌ¡£
È磺ÔÚEclipseÖб༭Îļþ£¬Ñ¡ÖÐÎļþ´ò¿ªÓÒ¼ü²Ëµ¥Ñ¡ÔñÊôÐÔ£¬½«Îı¾Îļþ±àÂëÉèÖÃΪÆäËû²¢Ñ¡ÔñUTF-8£»Ò²¿ÉÒÔÔÚ
Eclipse——Ê×Ñ¡Ïî——³£¹æ——ÄÚÈÝÀàÐÍÖÐÉèÖø÷ÖÖÎļþµÄȱʡ±àÂ룬ÕâÑùÒÔºóËùÓеÄÎı¾Îļþ¶¼Ê¹ÓÃÍ³Ò ......

JSP ÉÏ´«ºÍÏÂÔØÎļþ

×¼±¸Ìõ¼þ£º
ÔÚJboss4.2.2GA¸ùĿ¼Ï²¿ÊðÅäÖÃÎļþ£ºconstants.xml
<?xml version="1.0" encoding="UTF-8"?>
<constants>
<init-constants>
<context-param>
<name>path.upload.dcm</name>
<value>//192.168.1.37/upload/oaw/</value>
</context-para ......

JSPÒ³ÃæÎÞ·¨½âÎöEL±í´ïʽ

      ×î½üÊÕµ½Ò»¸öÏîÄ¿µÄÔ´´úÂ룬²¿ÊðÒÔºó´ò¿ªÒ³Ãæ·¢ÏÖJSPÒ³ÃæÖеÄEL±í´ïʽ¶¼Ã»ÓнâÎö£¬¶¼ÊÇÔ­ÑùÏÔʾ¡£
ÉÏÍøËÑË÷ÁËÒ»ÏÂÔ­Òò£¬Ô­À´ÊÇServlet°æ±¾µÄÎÊÌâ¡£Ô­À´ServletÖпÉÒÔÉ趨ÊÇ·ñ½âÎöEL±í´ïʽ£¬Ö»ÓÐ2.4°æ±¾µÄServletĬÈÏÊǽâÎöEL±í´ïʽµÄ£¬¶øÆäËû°æ±¾ÊÇĬÈϲ»½âÎöEL±í´ïʽ£¬²éÁËһϳÌÐò£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ