2010.5.5¼Ç£¨JSPÖÐÒýÓÃjsÎļþ»á·¢ÉúÒýÓò»µ½µÄÎÊÌ⣩
ÔÚJSPÖÐÒýÓÃjsÎļþ»á·¢ÉúÒýÓò»µ½µÄÎÊÌ⣺
ÔÚwebÏîÄ¿À´æÔÚWEB-INFÎļþĿ¼£¬ÎҵĴíÎó×ö·¨ÊǰÑjs£¬image£¬CSS¶¼·ÅÔÚ´ËÎļþ¼ÐÏ¡£×î³õÒÔΪÊÇÏà¶Ô·¾¶Óë¾ø¶Ô·¾¶¸ã´íÁË£¬µ«ÊÇÔõôÐÞ¸ÄÒ²ÎÞ·¨½â¾öÎÊÌâ¡£µ÷ÓÃjsʱ×ÜÊǻᱨȱÉÙ¶ÔÏó£¬×îºóÁ˽âÊÇÒòΪWEB-INFÕâÀïµÄ¶«Î÷ÊDz»ÈÃÖ±½Ó·ÃÎʵġ£ËùÒԸı䷽·¨°ÑÕâЩÎļþ¾Í¶¼·ÅÔÚÁ˸ùĿ¼Ï£¬ÒýÓ÷½Ê½ÊÇ<script src="js/ui.datepicker.js" type="text/javascript"></script>ÕâÑù¾ÍÕýÈ·ÁË
µ÷ÓÃjQueryÈÕÆÚ¿Ø¼þµÄʱºò£¬»áдһ¸öÖÐ-Ó¢ÎÄת»»µÄjs£¬±¾Éí¿Ø¼þÊÇÓ¢Îĵ쬼ÓÈëÖÐÎĵÄÎĵµ¾Í»á×Ô¶¯¼ÓÔØ³ÉΪÖÐÎÄÏÔʾ£¬µ«ÊǼÓÔØÊ±³öÏÖÖÐÎÄÂÒÂëµÄÇé¿ö£¬×îºó½â¾öÊÇÒòΪjsÎļþÊôÐÔûÓиijÉutf-8µÄ¸ñʽ¡£
Ïà¹ØÎĵµ£º
jsp »º´æ£¬ html »º´æ£¬ ajax»º´æ,½â¾ö·½·¨
url:http://blog.csdn.net/oklzh/archive/2009/08/14/4445722.aspx
ÓйØÒ³Ã滺´æÎÊÌ⣮Õâ¸öÎÊÌâÉÏÍøÕÒÁ˺ö࣮µ«·¢¾õ¸÷ÖÖ½â¾ö·½·¨£¬¶¼±Ë´Ë·ÖÀ룬ûÓÐһƪͳһµÄ½â¾ö·½·¨£¬±¾È˽üÈÕ£¬Ò²Óöµ½ÁËÒ³Ãæ»º´æµÄÎÊÌ⣬¸ù¾ÝÍøÉϸ÷Ò³Ãæ»º´æµÄ½â´ð£¬×öÁËÒ»¸ö×ܽᡣ
1.·þÎñÆ÷¶Ë»º´æµÄÎÊÌâ ......
1 ËùÓÐµÄ .java|.jsp|.html|.xml Ô´Îļþ¾ùʹÓÃutf-8±àÂë¸ñʽ±£´æµ½ÏµÍ³´ÅÅÌ¡£
È磺ÔÚEclipseÖбà¼Îļþ£¬Ñ¡ÖÐÎļþ´ò¿ªÓÒ¼ü²Ëµ¥Ñ¡ÔñÊôÐÔ£¬½«Îı¾Îļþ±àÂëÉèÖÃΪÆäËû²¢Ñ¡ÔñUTF-8£»Ò²¿ÉÒÔÔÚ
Eclipse——Ê×Ñ¡Ïî——³£¹æ——ÄÚÈÝÀàÐÍÖÐÉèÖø÷ÖÖÎļþµÄȱʡ±àÂ룬ÕâÑùÒÔºóËùÓеÄÎı¾Îļþ¶¼Ê¹ÓÃÍ³Ò ......
×î½üÔÚдJSPµÄСÏîÄ¿£¬²»Ïë°ÑÊý¾Ý¿â£¬Êý¾ÝÎļþ¼Ð·¾¶µÈÅäÖÃÐÅϢдËÀÔÚ´úÂëÖУ¬ÓÚÊÇ×ÁÄ¥ÓÃxmlÅäÖÃÎļþµÄ·½·¨£¬ÏÖÔÚ½«Ê¹ÓÃÐĵÃ×ܽáһϣº
1.³ýÁËÒýÈëdom4j.jar°üÖ®Í⣬ʹÓÃXPATH±ØÐëÒýÈëjaxen.jar°ü£¬·ñÔòÀÏÊDZ¨´í¡£(ÔÚdom4jµÄ½âѹÎļþ¼ÐϵÄlibÎļþ¼ÐÖпÉÒÔÕÒµ½jaxen.jar)
2.ÖØµã£ºÓÉÓÚÊÇÒªÔÚtomcat»·¾³Ö®ÏÂʹÓÃjava·ÃÎÊÎÄ ......
Ò»¡¢JSPÒ³ÃæÏÔʾÂÒÂë
¶þ¡¢±íµ¥Ìá½»ÖÐÎÄʱ³öÏÖÂÒÂë
Èý¡¢Êý¾Ý¿âÁ¬½Ó
´ó¼ÒÔÚJSPµÄ¿ª·¢¹ý³ÌÖУ¬¾³£³öÏÖÖÐÎÄÂÒÂëµÄÎÊÌ⣬¿ÉÄÜÒ»ÖÁÀ§ÈÅ×ÅÄú£¬ÎÒÏÖÔÚ°ÑÎÒÔÚJSP¿ª·¢ÖÐÓöµ½
µÄÖÐÎÄÂÒÂëµÄÎÊÌâ¼°½â¾ö°ì·¨Ð´³öÀ´¹©´ó¼Ò²Î¿¼¡£
Ò»¡¢JSPÒ³ÃæÏÔʾÂÒÂë
ÏÂÃæµÄÏÔÊ¾Ò³Ãæ(display.jsp)¾Í³öÏÖÂÒÂ룺
<html>
<head>
<tit ......
jspѧϰÐĵÃ
ѧϰJSP¼¼ÊõÒ²¿ì°ëÄê¶àÁ˰ɣ¬×Ô¼ºÒ²¶¯ÊÖ±àдÁËһЩ¼òµ¥µÄ¶¯Ì¬ÍøÒ³°É¡£ÖÚËùÖÜÖª¶¯Ì¬ÍøÒ³Èý´ó¼¼ÊõASP£¬JSP£¬PHP»ù±¾ÉÏÊÇÈý·ÖÌìÏ£¬µ±È»»¹ÓÐÆäËûÓïÑÔÏñRuby£¬PythonµÈÒ²Õ¼¾Ý²»Ð¡µÄ·Ý¶î¡£
ѧϰJSP¹ý³ÌÖÐÎҸд¥×îÉîµÄÊÇÈçϼ¸µã£º
1.JSPÊÇÒ»ÖÖ±íʾ²ãµÄ¼¼Êõ
&nb ......