¡¾JSPѧϰ±Ê¼Ç¡¿ JSP֪ʶµã×ܽá
Ò»¡¢JSPµÄ¼¼ÊõÔÀí
¶þ¡¢JSPµÄ×¢ÊͺÍÉùÃ÷
JSP×¢ÊÍÓÃÓÚ±íÃ÷ÔÚ³ÌÐò¿ª·¢¹ý³ÌÖеĿª·¢Ìáʾ£¬²»»áÊä³öµ½¿Í»§¶Ë£»
<%--×¢ÊÍÄÚÈÝ--%> —— JSP×¢ÊÍ
<£¡--×¢ÊÍÄÚÈÝ--£¡> ——HTML×¢ÊÍ
Èý¡¢JSP½Å±¾
<%! ÉùÃ÷²¿·Ö %>
<%= ±í´ïʽ %>
<% JSP½Å±¾ %>
ËÄ¡¢JSPµÄÈý¸ö±àÒëÖ¸Áî
³£¼ûµÄ±àÒëÖ¸ÁîÓÐÈý¸ö£ºpage£¬Taglib£¬include£»
¸ñʽ£º<%@ ±àÒëÖ¸ÁîÃû ÊôÐÔÃû=“ÊôÐÔÖµ” … %>
page£º¸ÃÖ¸ÁîÊÇÕë¶Ôµ±Ç°Ò³ÃæµÄÖ¸Á
include:ÓÃÓÚÖ¸¶¨ÈçºÎ°üº¬ÁíÒ»¸öÒ³Ã棻
taglib£ºÓÃÓÚ¶¨ÒåºÍ·ÃÎÊ×Ô¶¨Òå±êÇ©£»
Îå¡¢JSPµÄÆ߸ö´¦ÀíÖ¸Áî
JSP¶¯×÷Ö¸ÁîÖ÷ÒªÓÐÒÔÏÂ7¸ö£º
jsp:forward :Ö´ÐÐÒ³ÃæתÏò£¬½«ÇëÇóµÄ´¦Àíת·¢µ½ÏÂÒ»¸öÒ³Ã棻
jsp:param :ÓÃÓÚ´«µÝ²ÎÊý£¬±ØÐëÓëÆäËûÖ§³Ö²ÎÊýµÄ±êÇ©Ò»ÆðʹÓã»
jsp:include £º ÓÃÓÚ¶¯Ì¬µÄÒýÈëÒ»¸öJSPÒ³Ã棻
jsp:plugin : ÓÃÓÚÏÂÔØJavaBean»òÕßAppletµ½¿Í»§¶ËÖ´ÐУ»
jsp:useBean £º ʹÓÃJavaBean£»
jsp:setProperty £º ÐÞ¸ÄJavaBeanʵÀýµÄÊôÐÔÖµ£»
jsp:getProperty : »ñÈ¡JavaBeanʵÀýµÄÊôÐÔÖµ£»
Áù¡¢JSPµÄ¾Å¸öÄÚÖöÔÏó
application£º
config£º
exception:
out
page:
pageContext:
request:
response:
session:
Æß¡¢Servlet½éÉÜ
°Ë¡¢Filter£¬Listener
¾Å¡¢JSP2.0ÐÂÌØÐÔ
±í´ïʽÓïÑÔ£ºEL
¼ò»¯µÄ×Ô¶¨Òå±êÇ©API
TAGÎļþÓï·¨
&nb
Ïà¹ØÎĵµ£º
ÂÒÂëÕæÊǸöÁîÈËÌÖÑáµÄÎÊÌâ~
¸Õ²ÅÖÕÓÚ°ÑMySQLÓëJSP½»»¥µÄÂÒÂëÎÊÌâ½â¾öÁË¡£
°ì·¨ÈçÏ£º
1.ÔÚurl´¦¼ÓÉϾä×Ó "&useUnicode=true&characterEncoding=GBK" £»
2.ÎÒÓÃNavicat Lite¿ÉÊÓ»¯¹¤¾ß´´½¨MySQLÊý¾Ý¿âʱ£¬¿ÉÑ¡¶¨Êý¾Ý¿â±àÂ룬ҲÊÇ GBK £»
3.Ò³ÃæµÄ±àÂë¿ÉÒÔÑ¡GBKÒÔÍâµÄ±àÂ뷽ʽ£¬ÈçUTF-8¡£Èô²Ù×÷Ò³ÃæµÄ±àÂëÊÇUTF- ......
ͨ¹ýjsp(SUNÆóÒµ¼¶Ó¦ÓõÄÊ×Ñ¡)³ÌÐò»ñµÃdatabaseÀïµÄÊý¾Ý£¬È»ºóͨ¹ý³ÌÐò¿ØÖÆÆäÏÔʾ·½Ê½£¬ÕâÖÖ·½Ê½Ã÷ÏÔȱµãÊÇÈç¹ûÊý¾ÝÁ¿±È½Ï´óµÄʱºò»áÓÐÃ÷ÏÔµÄÐÔÄÜϽµ
ÏÖ½«²âÊÔ´úÂë·îÉÏ£¬¾¡¹ÜÎÒ¾¡Á¿ÏÞÖÆ´úÂëµÄ³¤¶È
ÏÈ˵Ï¿ª·¢²½Ö裻DB½Å±¾£¬²âÊÔ»ñµÃµÄÊý¾ÝÊÇ·ñÕýÈ·µÄÏÔʾÔÚÒ»¸ötableÖУ¬Ìí¼ÓÄÇ ......
¸÷ÀàÍøÒ³µ¯´°´úÂë±àд
¡¡
¾³£ÉÏÍøµÄÅóÓÑ¿ÉÄܻᵽ¹ýÕâÑùһЩÍøÕ¾£¬Ò»½øÈëÊ×Ò³Á¢¿Ì»áµ¯³öÒ»¸ö´°¿Ú£¬»òÕß°´Ò»¸öÁ¬½Ó»ò°´Å¥µ¯³ö£¬Í¨³£ÔÚÕâ¸ö´°¿ÚÀï»áÏÔʾһЩעÒâÊÂÏî¡¢°æȨÐÅÏ¢¡¢¾¯
¸æ¡¢»¶Ó¹â¹ËÖ®ÀàµÄ»°»òÕß×÷ÕßÏëÒªÌرðÌáʾµÄÐÅÏ¢¡£ÆäʵÖÆ×÷ÕâÑùµÄÒ³ÃæЧ¹û·Ç³£µÄÈÝÒ×£¬Ö»ÒªÍù¸ÃÒ³ÃæµÄHTMLÀï¼ÓÈ뼸¶ÎJavascript´úÂë¼´¿ÉÊ ......
Á¬Ðø¼¸Ìì°²×°ÅäÖúÍÁ¬½ÓMysqlÊý¾Ý¿â£¬½ñÌìÖÕÓڳɹ¦ÁË£¬»ØÏëÕ⼸Ì죬ÕæµÄÊÇÌðËá¿àÀ±¶¼ÓУ¬µ¥mysql¾ÍÖØ×°Á˲»ÏÂ10´Î£¬¶øÔÚeclipseÉϱàдµÄÁ¬½ÓÊý¾Ý¿âµÄ³ÌÐò×ÜÊDZ¨´í£®ÎÒ¶¼ÒѾdownÁËoracal×¼±¸·ÅÆúmysqlÁË£¬²»¹ý£®£®£®¾ÍÏóµçÊÓ¾çÑݵÄÄÇÑù£¬×ª»ú×ÜÊÇÔÚÕâ¸öʱºò³öÏÖ£¬ÏÈÊÇ¿´µ½ÁËsaulzy¹ØÓÚmysql4.1.11°æ±¾µÄ°²×°½éÉÜ£¬½Ó×ÅÓÖÕ ......
ÎÒÏÖÔÚ¸øÄãÒ»¸öJAVAºÍJSPÖ®¼äµÄ¹Øϵ,ÒÔ¼°JAVAµÄÍêÕûÈÏʶ
JAVA·ÖΪJ2EE,J2SE.J2ME,ÏÂÃæ·Ö±ð½éÉÜ:
Ò».J2EE£ºJava 2 Platform Enterprise Edition ÆóÒµ°æ£¬ÓÃÓÚÆóÒµÓ¦Óã¬Ö§³Ö·Ö²¼Ê½²¿Êð¡£
J2EEƽ̨ÓÉÒ»ÕûÌ×·þÎñ£¨Services£©¡¢Ó¦ÓóÌÐò½Ó¿Ú£¨APIs£©ºÍÐÒé¹¹³É£¬
Ëü¶Ô¿ª·¢»ùÓÚWebµÄ¶à²ãÓ¦ÓÃÌṩÁ˹¦ÄÜÉϵÄÖ§³Ö¡£Ëü°ü ......