JAVA WEB Ïà¹ØµÄ×Ö·û±àÂë
1. ¸ÅÊö
±¾ÎÄÖ÷Òª°üÀ¨ÒÔϼ¸¸ö·½Ã棺±àÂë»ù±¾ÖªÊ¶£¬java£¬ÏµÍ³Èí¼þ£¬url£¬¹¤¾ßÈí¼þµÈ¡£
ÔÚÏÂÃæµÄÃèÊöÖУ¬½«ÒÔ"ÖÐÎÄ"Á½¸ö×ÖΪÀý£¬¾²é±í¿ÉÒÔÖªµÀÆäGB2312±àÂëÊÇ"d6d0 cec4"£¬Unicode±àÂëΪ"4e2d 6587"£¬UTF±àÂë¾ÍÊÇ"e4b8ad e69687"¡£×¢Ò⣬ÕâÁ½¸ö×ÖûÓÐiso8859-1±àÂ룬µ«¿ÉÒÔÓÃiso8859-1±àÂëÀ´"±íʾ"¡£
2. ±àÂë»ù±¾ÖªÊ¶
×îÔçµÄ±àÂëÊÇiso8859-1£¬ºÍascii±àÂëÏàËÆ¡£µ«ÎªÁË·½±ã±íʾ¸÷ÖÖ¸÷ÑùµÄÓïÑÔ£¬Öð½¥³öÏÖÁ˺ܶà±ê×¼±àÂ룬ÖØÒªµÄÓÐÈçϼ¸¸ö¡£
2.1. iso8859-1
ÊôÓÚµ¥×Ö½Ú±àÂ룬×î¶àÄܱíʾµÄ×Ö·û·¶Î§ÊÇ0-255£¬Ó¦ÓÃÓÚÓ¢ÎÄϵÁС£±ÈÈ磬×Öĸ’a'µÄ±àÂëΪ0×61=97¡£
ºÜÃ÷ÏÔ£¬iso8859-1±àÂë±íʾµÄ×Ö·û·¶Î§ºÜÕ£¬ÎÞ·¨±íʾÖÐÎÄ×Ö·û¡£µ«ÊÇ£¬ÓÉÓÚÊǵ¥×Ö½Ú±àÂ룬ºÍ¼ÆËã»ú×î»ù´¡µÄ±íʾµ¥Î»Ò»Ö£¬ËùÒԺܶàʱºò£¬ÈÔ¾ÉʹÓÃiso8859-1±àÂëÀ´±íʾ¡£¶øÇÒÔںܶàÐÒéÉÏ£¬Ä¬ÈÏʹÓøñàÂë¡£±ÈÈ磬ËäÈ»"ÖÐÎÄ"Á½¸ö×Ö²»´æÔÚiso8859-1±àÂ룬ÒÔgb2312±àÂëΪÀý£¬Ó¦¸ÃÊÇ"d6d0 cec4"Á½¸ö×Ö·û£¬Ê¹ÓÃiso8859-1±àÂëµÄʱºòÔò½«Ëü²ð¿ªÎª4¸ö×Ö½ÚÀ´±íʾ£º"d6 d0 ce c4"£¨ÊÂʵÉÏ£¬ÔÚ½øÐд洢µÄʱºò£¬Ò²ÊÇÒÔ×Ö½ÚΪµ¥Î»´¦ÀíµÄ£©¡£¶øÈç¹ûÊÇUTF±àÂ룬ÔòÊÇ6¸ö×Ö½Ú"e4 b8 ad e6 96 87"¡£ºÜÃ÷ÏÔ£¬ÕâÖÖ±íʾ·½·¨»¹ÐèÒªÒÔÁíÒ»ÖÖ±àÂëΪ»ù´¡¡£
2.2. GB2312/GBK
Õâ¾ÍÊǺº×ֵĹú±êÂ룬רÃÅÓÃÀ´±íʾºº×Ö£¬ÊÇË«×Ö½Ú±àÂ룬¶øÓ¢ÎÄ×ÖĸºÍiso8859-1Ò»Ö£¨¼æÈÝiso8859-1±àÂ룩¡£ÆäÖÐgbk±àÂëÄܹ»ÓÃÀ´Í¬Ê±±íʾ·±Ìå×ֺͼòÌå×Ö£¬¶øgb2312Ö»Äܱíʾ¼òÌå×Ö£¬gbkÊǼæÈÝgb2312±àÂëµÄ¡£
2.3. unicode
ÕâÊÇ×îͳһµÄ±àÂ룬¿ÉÒÔÓÃÀ´±íʾËùÓÐÓïÑÔµÄ×Ö·û£¬¶øÇÒÊǶ¨³¤Ë«×Ö½Ú£¨Ò²ÓÐËÄ×ֽڵģ©±àÂ룬°üÀ¨Ó¢ÎÄ×ÖĸÔÚÄÚ¡£ËùÒÔ¿ÉÒÔ˵ËüÊDz»¼æÈÝiso8859-1±àÂëµÄ£¬Ò²²»¼æÈÝÈκαàÂë¡£²»¹ý£¬Ïà¶ÔÓÚiso8859-1±àÂëÀ´Ëµ£¬uniocode±àÂëÖ»ÊÇÔÚÇ°ÃæÔö¼ÓÁËÒ»¸ö0×Ö½Ú£¬±ÈÈç×Öĸ’a'Ϊ"00 61"¡£
ÐèҪ˵Ã÷µÄÊÇ£¬¶¨³¤±àÂë±ãÓÚ¼ÆËã»ú´¦Àí£¨×¢ÒâGB2312/GBK²»ÊǶ¨³¤±àÂ룩£¬¶øunicodeÓÖ¿ÉÒÔÓÃÀ´±íʾËùÓÐ×Ö·û£¬ËùÒÔÔںܶàÈí¼þÄÚ²¿ÊÇʹÓÃunicode±àÂëÀ´´¦ÀíµÄ£¬±ÈÈçjava¡£
2.4. UTF
¿¼Âǵ½unicode±àÂë²»¼æÈÝiso8859-1±àÂ룬¶øÇÒÈÝÒ×Õ¼Óøü¶àµÄ¿Õ¼ä£ºÒòΪ¶ÔÓÚÓ¢ÎÄ×Öĸ£¬unicodeÒ²ÐèÒªÁ½¸ö×Ö½ÚÀ´±íʾ¡£ËùÒÔunicode²»±ãÓÚ´«ÊäºÍ´æ´¢¡£Òò´Ë¶ø²úÉúÁËutf±àÂ룬utf±àÂë¼æÈÝiso8859-1±àÂ룬ͬʱҲ¿ÉÒÔÓÃÀ´±íʾËùÓÐÓïÑÔµÄ×Ö·û£¬²»¹ý£¬utf±àÂëÊDz»¶¨³¤±àÂ룬ÿһ¸ö×Ö·ûµ
Ïà¹ØÎĵµ£º
1.JavaµÄ´úÂëÒ»°ã·ÖΪÁ½´óÀࣺһÖÖÊǽṹ¶¨ÒåÓï¾ä£»Ò»ÖÖÊǹ¦ÄÜÓï¾ä£¨¹¦ÄÜÓï¾äÒªÓ÷ֺŽá⣩¡£
2.ÓÃ/* ÄÚÈÝ */×¢ÊÍ£¬ÄÚÈÝÀïÃæÊDz»ÄÜ´æÔÚ/* */µÄ£»µ«ÊÇ¿ÉÒÔ´æÔÚ//£»ÒòΪÕâÑù¾Í²»»á·¢Éúϵͳ²»ÖªµÀÄĸö*/²ÅÊÇÕæµÄ½áÊø·û¡£
3.±äÁ¿Ê¹ÓÃÇ°±ØÐë³õʼ»¯£¬Ê¹Óõ¥ÒýºÅµÄ×÷ÓþÍÊÇ°ÑÀïÃæµÄ×Ö ......
JAVA Á¬½Ó SQLServer 2000 ËùÐèÒªµÄÈý¸öJAR°ü¡£
http://download.csdn.net/source/2283940
----------------
Code:
------------------------
Connection conn = null;
Statement sta = null;
try {
Class.forName("com.microsoft.jdbc.sqlserver.SQLServer ......
³ý °Ë¸ö»ù±¾ÀàÐÍ£¨Long ,short,int ,float,double,char,byte,boolean£©Í⣬ÆäËûµÄÊý¾ÝÀàÐͶ¼±»³ÆΪ“ÒýÓÃÀàÐÍ”£¬Ò²¼´£ºObject¡£ObjectµÄ²Ù×÷È«ÊÇͨ¹ý¶ÔÏóµÄÒýÓã¨Object references£©£¬ÒýÓÿÉÒÔÀí½âΪָÕ룬ÈÝÒ×ÈÃÈ˶ÔÓ¦µ½C£«£«µÄ´«Ö·ÉÏÃæÈ¥¡£ËùÒÔ£¬´ó¼ÒҪעÒâඣ¡javaÀïÃæËä˵ûָÕ룬Æäʵȴ²»È»¡£ ......
ÔÚeclipseÖÐн¨ÁËÒ»¸öwebÏîÄ¿ È»ºóÔÚwebÏîÄ¿ÖÐÏëÌí¼Óflex ¿ª·¢Ç°Ì¨¡£ÔÚwebÏîÄ¿ÃûÉϵã»÷ÓÒ¼ü ----flex project Nature ----- Add flex project Nature ÔÚµ¯³öµÄ¶Ô»°¿òÖÐ ÉèÖÃÈçͼ£º
È»ºó µã»÷ next
Flex WAR file £º Ñ¡Ôñ ÄãµÄblazeds µÄ·¾¶ È»ºóµã»÷ Finish
½á¹û ÏîÄ¿ÏÔʾº ......
java¹¤×÷ÕßÉçÇøÖ÷°ì
1. ¡¾¸´Ñ¡¡¿ÊÕÈëÓÐÕÇ£¬ÓиÉÍ·
22.22%
2. ¡¾¸´Ñ¡¡¿ÊÕÈë²»ÀÖ¹Û£¬Ã»¸ÉÍ·
8.89%
3. ¡¾µ¥Ñ¡¡¿ÄêÊÕÈë50ÍòÒÔÉÏ
2.22%
4. ¡¾µ¥Ñ¡¡¿ÄêÊÕÈë20Íò~50Íò
4.44%
5. ¡¾µ¥Ñ¡¡¿ÄêÊÕÈë10Íò~20Íò ......