Java/JSPÖÐÎÄÂÒÂëÎÊÌâ½â¾öÐĵÃ
Java/JSPÖÐÎÄÂÒÂëÎÊÌâ½â¾öÐĵÃ
×Ô´Ó½Ó´¥JavaºÍJSPÒÔÀ´£¬¾Í²»¶ÏÓëJavaµÄÖÐÎÄÂÒÂëÎÊÌâ´ò½»µÀ£¬ÏÖÔÚÖÕÓڵõ½Á˳¹µ×µÄ½â¾ö£¬ÏÖ½«ÎÒÃǵĽâ¾öÐĵÃÓë´ó¼Ò¹²Ïí¡£
Ò»¡¢JavaÖÐÎÄÎÊÌâµÄÓÉÀ´
JavaµÄÄں˺ÍclassÎļþÊÇ»ùÓÚunicodeµÄ£¬ÕâʹJava³ÌÐò¾ßÓÐÁ¼ºÃµÄ¿çƽ̨ÐÔ£¬µ«Ò²´øÀ´ÁËһЩÖÐÎÄÂÒÂëÎÊÌâµÄÂé·³¡£ÔÒòÖ÷ÒªÓÐÁ½·½Ã棬JavaºÍJSPÎļþ±¾Éí±àÒëʱ²úÉúµÄÂÒÂëÎÊÌâºÍJava³ÌÐòÓÚÆäËûý½é½»»¥²úÉúµÄÂÒÂëÎÊÌâ¡£
Ê×ÏÈJava£¨°üÀ¨JSP£©Ô´ÎļþÖкܿÉÄÜ°üº¬ÓÐÖÐÎÄ£¬¶øJavaºÍJSPÔ´ÎļþµÄ±£´æ·½Ê½ÊÇ»ùÓÚ×Ö½ÚÁ÷µÄ£¬Èç¹ûJavaºÍJSP±àÒë³ÉclassÎļþ¹ý³ÌÖУ¬Ê¹ÓõıàÂ뷽ʽÓëÔ´ÎļþµÄ±àÂë²»Ò»Ö£¬¾Í»á³öÏÖÂÒÂë¡£»ùÓÚÕâÖÖÂÒÂ룬½¨ÒéÔÚJavaÎļþÖо¡Á¿²»ÒªÐ´ÖÐÎÄ£¨×¢ÊͲ¿·Ö²»²ÎÓë±àÒ룬дÖÐÎÄû¹Øϵ£©£¬Èç¹û±ØÐëдµÄ»°£¬¾¡Á¿ÊÖ¶¯´ø²ÎÊý£ecoding GBK»ò£ecoding gb2312±àÒ룻¶ÔÓÚJSP£¬ÔÚÎļþÍ·¼ÓÉÏ<%@ page contentType="text/html;charset=GBK"%>»ò<%@ page contentType="text/html;charset=gb2312"%>»ù±¾ÉϾÍÄܽâ¾öÕâÀàÂÒÂëÎÊÌâ¡£
±¾ÎÄÒªÖصãÌÖÂÛµÄÊǵڶþÀàÂÒÂ룬¼´Java³ÌÐòÓëÆäËû´æ´¢Ã½½é½»»¥Ê±²úÉúµÄÂÒÂë¡£ºÜ¶à´æ´¢Ã½½é£¬ÈçÊý¾Ý¿â£¬Îļþ£¬Á÷µÈµÄ´æ´¢·½Ê½¶¼ÊÇ»ùÓÚ×Ö½ÚÁ÷µÄ£¬Java³ÌÐòÓëÕâЩý½é½»»¥Ê±¾Í»á·¢Éú×Ö·û(char)Óë×Ö½Ú(byte)Ö®¼äµÄת»»£¬¾ßÌåÇé¿öÈçÏ£º
´ÓÒ³ÃæformÌá½»Êý¾Ýµ½java³ÌÐò byte£>char
´Ójava³ÌÐòµ½Ò³ÃæÏÔʾ char?>byte
´ÓÊý¾Ý¿âµ½java³ÌÐò byte?>char
´Ójava³ÌÐòµ½Êý¾Ý¿â char?>byte
´ÓÎļþµ½java³ÌÐò byte£>char
´Ójava³ÌÐòµ½Îļþ char£>byte
´ÓÁ÷µ½java³ÌÐò byte£>char
´Ójava³ÌÐòµ½Á÷ char£>byte
Èç¹ûÔÚÒÔÉÏת»»¹ý³ÌÖÐʹÓõıàÂ뷽ʽÓë×Ö½ÚÔÓеıàÂë²»Ò»Ö£¬ºÜ¿ÉÄܾͻá³öÏÖÂÒÂë¡£
¶þ¡¢½â¾ö·½·¨
Ç°ÃæÒѾÌáµ½ÁËJava³ÌÐòÓëÆäËûý½é½»»¥Ê±×Ö·ûºÍ×Ö½ÚµÄת»»¹ý³Ì£¬Èç¹ûÕâЩת»»¹ý³ÌÖÐÈÝÒײúÉúÂÒÂë¡£½â¾öÕâЩÂÒÂëÎÊÌâµÄ¹Ø¼üÔÚÓÚÈ·±£×ª»»Ê±Ê¹ÓõıàÂ뷽ʽÓë×Ö½ÚÔÓеıàÂ뷽ʽ±£³ÖÒ»Ö£¬ÏÂÃæ·Ö±ðÂÛÊö£¨Java»òJSP×ÔÉí²úÉúµÄÂÒÂëÇë²Î¿´µÚÒ»²¿·Ö£©¡£
1¡¢JSPÓëÒ³Ãæ²ÎÊýÖ®¼äµÄÂÒÂë
JSP»ñÈ¡Ò³Ãæ²ÎÊýʱһ°ã²ÉÓÃϵͳĬÈϵıàÂ뷽ʽ£¬Èç¹ûÒ³Ãæ²ÎÊýµÄ±àÂëÀàÐͺÍϵͳĬÈϵıàÂëÀàÐͲ»Ò»Ö£¬ºÜ¿ÉÄܾͻá³öÏÖÂÒÂë¡£½â¾öÕâÀàÂÒÂëÎÊÌâµÄ»ù±¾·½·¨ÊÇÔÚÒ³Ãæ»ñÈ¡²ÎÊý֮ǰ£¬Ç¿ÖÆÖ¸¶¨request»ñÈ¡²ÎÊýµÄ±àÂ뷽ʽ£ºrequest.setCharacterEncoding("GBK")»òrequest.setCharacterEncoding("gb2312")¡£
Èç¹ûÔÚJSP½«±äÁ¿Êä³öµ½Ò³
Ïà¹ØÎĵµ£º
×î½üÔÚÓÃÈóǬÔÚ×öһЩwebÏîÄ¿µÄ±¨±í£¬ÆäÖÐÓÐÒ»¸öÅúÁ¿´òÓ¡µÄ±¨±í¡£ÐèÒª°Ñ²ÎÊý´«µ½±¨±íÀµ±°ÑÖÐÎÄ´«µ½ÀïÃæʱ×ÜʱÂÒÂ룬²ÉÓÃÁ˸÷ÖÖתÂ뷽ʽ£¬Ò²Ã»×ª¹ýÀ´£¬ÔÎ.........
Ϊʲô»áÓÐÕâô¶àµÄ±àÂ룬ºÃÍ·ÌÛѽ... ......
ArcGIS Server9.3ÍêÕûÇåÎú°²×°Á÷³Ì
ÒÔϵÄArcGIS Server9.3°²×°Á÷³ÌÊÇÎÒ¸öÈË×ܽá³öÀ´µÄ£¬ÔÚwindowXP2Ñé֤ͨ¹ý£¬ÐèÒªµÄ»°£¬Ï£ÍûÓõÄ×Å¡£
Ò»¡¢ArcGIS Server²úÆ·°üÀ¨Á½¸ö²¿·Ö£º
1¡¢GIS Server£¬ËüÊÇÒ»¸öÌṩGIS·þÎñµÄ·þÎñÆ÷Èí¼þ²úÆ·£¬°üÀ¨Ò»ÏµÁкËÐÄAO¿âºÍÒ»¸ö¹ ......
Java°æÖ§¸¶±¦½Ó¿Ú¿ª·¢
ÐèÇ󣺵÷ÓÃÖ§¸¶±¦½Ó¿ÚµÄ½Ó¿Ú²¢¼¯³Éµ½É̳Ç
µ÷ÓÃÖ§¸¶±¦½Ó¿ÚËùÐèÒªµÄ“Ö§¸¶±¦ºÏ×÷»ï°éid”ºÍ“Ö§¸¶±¦°²È«Ð£ÑéÂ딹«Ë¾¶¼¸øÌṩºÃÁË£¬Ö§¸¶±¦¹Ù·½ÄÇÀïÒ²ÓиýӿڵēʵÎïÉÌÆ·½»Ò×·þÎñ¼¯³É¼¼ÊõÎĵµ”¼°Ïà¹ØµÄDEMOÔ´Âë¡£¹«Ë¾ÈÃÎÒÓÃJAVAÀ´Ð´£¬ÖÕÓÚÔÝʱ²»ÓÃÔÙдJSÁË£¬ºÙºÙ&hel ......
¶ÔÓÚ½«ÒªÊ¹ÓõÄJSP¹æ·¶µÄÒ»¸öÌص㣬¾ÍÊÇJSP±í´ïʽÓïÑÔ¡£Ôںܴó³Ì¶ÈÉÏ£¬ËüÊÇÓÐÒâ¼ò»¯µÄ£¬²¢¶ÀÁ¢ÓÚJSP¡£
ÔÚJSPµÄÔçÆÚ°æ±¾ÖУ¬Java´úÂëÒԽű¾µÄÐÎʽǶÈëµ½JSPÒ³ÃæÖУ¬ÀýÈ磺
<%
MyBean bean = new MyBean();
String name = bean.getName();
out.println(name);
%>
Õâ¸ö½Å±¾´úÂëн¨ÁËÒ»¸öÃûΪMyBeanµÄʵÀý£¬»ñµÃË ......
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher
</filter-class>
</filter>
<filter-mapping>
<filter-name>strut ......