jspÖÐÁ¬½ÓÊý¾Ý¿âµÄÎÊÌâ
½ñÌìÔÚѧϰjspÖÐÊý¾Ý¿âµÄʹÓÃʱ£¬Óöµ½Ò»¸öºÜÆæ¹ÖµÄÇé¿ö£¨ÖÁÉÙÏÖÔÚ¿´À´Êǵģ©¡£jspÖÐÁ¬½ÓmysqlÊý¾Ý¿â£¬¿ªÆômysqlÊý¾Ý¿âºó£¬ÔÚjspÒ³ÃæÖÐǶÈëµÄjavaÁ¬½ÓmysqlÊý¾Ý¿âµÄÄǼ¸¾ä´úÂë¡£ºÃÏñ Class.forName("org.gjt.mm.mysql.Driver");ûÆðµ½×÷Óã¬Ö»ÐèÒªConnection con=DriverManager.getConnection("jdbc:mysql://localhost/test?user=&password=");¾ÍÐÐÁË¡£µ«ÊÇÔÚ´¿java³ÌÐòÖУ¬Ã»ÓÐClass.forName()»òÕßÀïÃæµÄÇý¶¯Ð´´íÁ˾ͻᱬ³öClassNotFoundException¡£Èç¹û²»Æô¶¯mysqlÊý¾Ý¿âµÄ»°£¬ÒªÏëÁ¬½ÓÊý¾Ý¿â£¬jspÔòÐèÒªÅäÖÃÊý¾Ý¿âÁË¡£ÄÇjspÖÐÁ¬½ÓÊý¾Ý¿âµÄʵÏÖ»úÖƾ¿¾¹ÊÇÔÚÔõôÑùµÄÄØ£¿
ÏÖÔÚòËÆÁ¬Connection con=DriverManager.getConnection("jdbc:mysql://localhost/test?user=&password=");¶¼²»ÐèÒªÁË£¬Connection con=DriverManager.getConnection("")¾Í¿ÉÒÔÁË£¬ÕÕÑùµØÁ¬½ÓÊý¾Ý¿â£¬¶ÔÊý¾Ý¿â½øÐÐÔöɾ¸Ä²é¡£ÕâÑù˵µÄ»°£¬mysqlÊý¾Ý¿âÔÚ°²×°µÄʱºò¾ÍÒѾÅäÖúÃÁË¡£¡£¡£¡£?
Ïà¹ØÎĵµ£º
GBK±àÂë
GBK±àÂëÊÇÖйúÖƶ©µÄ¡¢µÈͬÓÚUCSµÄеÄÖÐÎıàÂëÀ©Õ¹¹ú¼Ò±ê×¼¡£GBK¹¤×÷С×éÓÚ1995Äê10Ô£¬Í¬Äê12ÔÂÍê³ÉGBK¹æ·¶¡£¸Ã±àÂë±ê×¼¼æÈÝGB2312£¬¹²ÊÕ¼ºº×Ö21003¸ö¡¢·ûºÅ883¸ö£¬²¢Ìṩ1894¸öÔì×ÖÂë룬¼ò¡¢·±Ìå×ÖÈÚÓÚÒ»¿â¡£
UTF-8±àÂë
UTF-8±àÂë¿ÉÒÔͨ¹ýÆÁ±ÎλºÍÒÆλ²Ù×÷¿ìËÙ¶Áд¡£×Ö·û´®±È½Ïʱstrcmp()ºÍ
wcscmp()µÄ· ......
¡¡¡¡ RSS2.0ÔÚÍøÂçÉÏ´óÐÐÆäµÀ,¸÷ÖÖÍøÕ¾¶¼¼ÓÉÏRSSÖ§³Ö,¹ØÓÚRSS¹æ·¶,¿ÉÒÔä¯ÀÀһϠhttp://blogs.law.harvard.edu/tech/rss
Ôڼƻ®Éú³ÉRSSÎļþµÄʱºò,˳±ãËÑË÷ÁËÒ»ÏÂJIRAºÍConfluenceµÄ³ÌÐò,·¢ÏÖËüÃÇ·Ö±ðÊÇÓÃÄ£°å·½Ê½ºÍJSP¶¯Ì¬Ò³ÃæÀ´Õ¹Ê¾µÄ.
ÓÚÊÇÎÒÒ²Ïëµ½Á½ÖÖ·½Ê½:
¡¡¡¡1.ÓÃFreeMarkerÉú³É¾²Ì¬Îļþ,ÊÊÓÃÓÚ¸üв ......
²úÉú״̬ÏìÓ¦Âë
100¡«199£º±íʾ·þÎñ¶Ë³É¹¦½ÓÊÕÇëÇ󣬵«ÒªÇó¿Í»§¶Ë¼ÌÐøÌá½»ÏÂÒ»´ÎÇëÇó²ÅÄÜÍê³ÉÈ«²¿´¦Àí¹ý³Ì¡£
200¡«299£º±íʾ·þÎñ¶ËÒѾ³É¹¦½ÓÊÕÇëÇ󣬲¢Íê³ÉÁËÈ«²¿´¦Àí¹ý³Ì¡£
300¡«399£º±íʾ¿Í»§¶ËÇëÇóµÄ×ÊÔ´ÒѾÒƵ½Á˱ðµÄλÖ㬲¢Ïò¿Í»§¶ËÌṩһ¸öеĵØÖ·£¬Ò»°ãÕâ¸öеØÖ·ÓÉHTTPÏìÓ¦ÏûϢͷµÄLocation×Ö¶ÎÖ¸¶¨¡£
400¡ ......
ÎҵĻ·¾³:
--------
1. java±àÒëÆ÷:eclipse 3.0.2
2. web·þÎñÆ÷: tomcat 4.1.24
3. C±àÒëÆ÷: VC6.0
4. ²Ù×÷ϵͳ: win2k
5. javaÔ´ÎļþĿ¼: d:\study\src
6. java±àÒëºóµÄclassÎļþĿ¼: d:\study\bin
7. tomcatĿ¼: d:\tomcat41
1.±àдjavaÎļþ:
//Util.java
package com.jni;
public class Util
{
& ......
µÚÒ»½²£¨²Î¿¼¡¶Java Web³ÌÐòÉè¼Æ»ù´¡½Ì³Ì¡·µÚ1Õ£©
1 JSP ºÍ JavaµÄ¹Øϵ
Ò»°ãJavaÖ¸µÄ±ê×¢°æ Java SE
ÁíÍâÁ½¸ö°æ±¾£ºJava EE ºÍ Java ME
JSPÊôÓÚJava EEµÄÒ»²¿·Ö¡£
Java EE£º
×é¼þ£ºWeb²ã×é¼þ£¨JSP£«Servlet£©£«ÒµÎñ²ã×é¼þ£¨EJB£©
&n ......