Õýʽ½øÈëJSPѧϰ
ÒÔÏÂÊô¸öÈËÏë·¨£¡Ò²ÐíÊǶÔJAVAÒ»¼ûÖÓÇé¶ø˵£¡
ѧ¹ýASP.NETµÄÔÙȥѧJSP£¬ÄǸоõ¾ÍÍêÈ«²»Ò»ÑùÁË°¡£¡Èç¹û¹ý¶É¹ýÀ´ÁË£¬ÄÇ»¹ºÃ£¬Ã»¹ý¶ÉÄǽвҰ¡£¡Á½¸öÊÀ½ç°¡£¡»¹ºÃ£»ÎÒÊǶɹýÁË£¬Ò»ÐľÍÊÇJAVA£¬ËùÒÔÄÔ×ÓÀﶼÊÇJAVAµÄÀíÄ¿ª·¢JSPºÍ¿ª·¢JAVAÓ¦ÓóÌÐòÒ»Ñù£¬ÎÞ·ÇJSP¶àÁ˸öWEBROOT¡£
×ÔÎҸоõJSP±È.NETºÃ¶àÁË£¬£¨Ö¸Áî+С½Å±¾+±í´ïʽ£©ÕâЩÔÚJSPÖж¼ÊÇ“¿É¼û”µÄ£¬³õѧÕ߶¼ÖªµÀÕâЩÊǸÉʲôµÄºÍ¹¤×÷ÔÀí£¬ÔÚ.NETÖоͲ»Ò»ÑùÁË£¬Ê²Ã´¶¼·â×°µÄ£¬³õѧÕß¾ÍÊDz»Ã÷°×£¬ÒªÏë¸ãÃ÷°×£¬ÄǾͼÇסMICROSOFTµÄ¿ª·¢¹æÔò£¬ÄÇôһÏ룬Õâ²»ÊÇÓм±ÈËÂð£¿Ëü¾ÍÊÇ×öÁ˸ö“Áý×Ó”£¬ÄãҪѧÎÒµÄÄã¾ÍµÃ½øÕâ¸öÁý×Ó¡£¶øJAVA¾Í²»Ò»ÑùÁË£¬Ö»ÒªÄãÈÏΪºÃ£¬ÏëÔõôÑù¾ÍÔõôÑù¡£¸Ð¾õ»¹ÊÇJAVAºÃ£¡ºÇºÇ¡£
ÎÒÊÇJSPµÄ³õѧÕߣ¬ÏÖÔÚÕýÔÚ¸ãÒ»¸ö¡¶ÐÂÎÅ·¢²¼ÏµÍ³¡·£¬¾ÍÎÒÏÖÔÚµÄJAVAѧϰ״̬£¬ÊÇÔ½¸ãÔ½Óо¢°¡£¡
ÏÂÃæÕâÊÇÎÒ³õѧÕßµÄÐĵ㺡¶ÐÂÎÅ·¢²¼ÏµÍ³¡·Ë¼Â·
1.£© ÏÈ°ÑËùÓÐÒª²Ù×÷£¨Êý¾Ý¿â£¬Ç°Ì¨µÈ...£©µÄÂß¼ÏÈдºÃ
2.£©ÔÙȥѧ¸ù¾ÝÒµÎñÂ߼ȥдǰ̨µÄÒ³Ãæ
3.£©ÔÚÒ³ÃæÖмÓÈëС½Å±¾»ò±í´ïʽ¾ÍOKÁË
ÕâЩ¶¼ÊÇÎҵĸöÈË˼·£¨»¹Ã»Ñ§MVC£¬SSH£©ÈçÓиüºÃµÄ¿É²»ÒªÍüÁ˸æËßÎÒ°¡£¡ºÇºÇ£¡
Ïà¹ØÎĵµ£º
ÔÚ²»ÔÊÐíĿ¼ä¯ÀÀµÄÇé¿öÏ ä¯ÀÀÆ÷»áÏÈÕÒµ½Ê×Ò³£¨Ä¬ÈÏΪindex.html /index.jsp...£©
·ñÔò³ö´í
Òò´Ë ÈôÊ×Ò³±»¶ñÒâ¸ü¸Ä ÍøÕ¾±ÀÀ£
½â¾ö·½·¨£º
¸ü¸ÄĬÈÏÆô¶¯Ò³Ã棺$tomcat/conf/web.xml×îºóλÖÃ
<welcome-file-list>
<welcome-file>index.html</welcome-file> ......
Ç°Ì᣺¼ÙÉèÄãµÄ Http µØַΪ http://192.168.0.1/ ÄãµÄ web Ó¦ÓÃΪ webapp £¬ÄÇôÄãµÄ web Ó¦Óà URL Ϊ http://192.168.0.1/webapp/
[ÎÊÌâ1]
[ÃèÊö]µ±ÔÚ jsp ÖÐÒýÈë css ʱ£¬Èç¹ûÆäÏà¶Ô·¾¶Ïà¶ÔÓÚµ±Ç° jsp ÎļþµÄ£¬¶øÔÚÒ»¸öºÍÕâ¸ö jsp µÄ·¾¶²»Ò»ÑùµÄ servlet ÖÐ forwarder Õâ¸ö jsp ʱ£¬¾Í»á·¢ÏÖÕâ¸ö css Ñùʽ¸ù±¾Ã»ÓÐÆ ......
GBK±àÂë
GBK±àÂëÊÇÖйúÖƶ©µÄ¡¢µÈͬÓÚUCSµÄеÄÖÐÎıàÂëÀ©Õ¹¹ú¼Ò±ê×¼¡£GBK¹¤×÷С×éÓÚ1995Äê10Ô£¬Í¬Äê12ÔÂÍê³ÉGBK¹æ·¶¡£¸Ã±àÂë±ê×¼¼æÈÝGB2312£¬¹²ÊÕ¼ºº×Ö21003¸ö¡¢·ûºÅ883¸ö£¬²¢Ìṩ1894¸öÔì×ÖÂë룬¼ò¡¢·±Ìå×ÖÈÚÓÚÒ»¿â¡£
UTF-8±àÂë
UTF-8±àÂë¿ÉÒÔͨ¹ýÆÁ±ÎλºÍÒÆλ²Ù×÷¿ìËÙ¶Áд¡£×Ö·û´®±È½Ïʱstrcmp()ºÍwcscmp()µÄ·µ»Ø½ ......
֪ʶ׼±¸£º
JDBC·ÃÎÊÊý¾Ý¿âµÄ»ù±¾²½Öè
£¨1£©¡¢½«Êý¾Ý¿âµÄJDBCÇý¶¯¼ÓÔص½¹¤³ÌÀà¿âÖС£
£¨2£©¡¢¼ÓÔØJDBCÇý¶¯£¬²¢½«Æä×¢²áµ½DriverManagerÖС£ÏÂÃæÊÇһЩÖ÷Á÷Êý¾Ý¿âµÄJDBCÇý¶¯¼ÓÔØ×¢²áÂ룺
¢Ù¡¢oracleÊý¾Ý¿â
Class.forName(“oracle.jdbc.driver.OracleDriver”).newInstance();
¢Ú¡¢Sql Server 7.0/2000Êý¾ ......
ÔÚjspÖУ¬Èç¹ûÔÚurlÖд«µÝÖÐÎÄʱ»á³öÏÖÂÒÂ룬ÔÚÍøÉϹØÓÚÕâÒ»ÎÊÌâµÄ½â¾ö·½·¨Î廨°ËÃÅ£¬µ«¶¼²»ÊǺÜ×àЧ£¡Æäʵ½â¾ö·½·¨·Ç³£¼òµ¥£º µÚÒ»²½£º±àÂ루ÒÔ´«µÝµÄ²ÎÊýΪstrΪÀý£© ÔÚ´«µÝÊý¾ÝÇ°½«str½øÐбàÂëJava.net.URLEncoder.encode(str) µÚ¶þ²½£º½âÂë ÔÚ»ñÈ¡Êý¾Ý¶Ë½«µÃµ½µÄÊý¾Ý½øÐнâÂë new String£¨str.getBytes("ISO8859_1")£©
......