jsp ´æºº×Öµ½mysql³öÏÖÂÒÂë - Java / Web ¿ª·¢
ÎÒÔÚÒ³Ãæ»ñÈ¡µÄºº×Ö£¬Í³±àÂë¶¼ÊÇGBK£¬Êý¾Ý¿â±àÂëÒ²ÊÇGBk£¬Êý¾Ý¿âÁ¬½Ó×Ö·ûÒ²Ö¸¶¨defaultEncoding=gbk request.setCharacterEncoding("GBK");Ò²ÓÃÁË£¬²¢ÔÚÆÁÄ»ÉÏÊä³öҲû³öÏÖÂÒÂ룬µ«ÊÇÒ»´æ½øÊý¾Ý¿â¾Í³öÏÖÂÒÂëÁ˵«´æ½øÊý¾Ý¿âµÄºº×Ö¾ÍÊÇÒ»¶ÑÎʺš£Ï£Íû´ó¼Ò°ï°ï棻
ÄãÓõÄʲô»·¾³? ´ÓÊý¾Ý¿âÀï¶Á³öÀ´µ½Ç°Ì¨»áÂÒÂëÂð? ´Óºǫ́¶Á²»ÂÒÂ룬¸üÐÂʱ»ò²åÈëʱ»á³öÏÖÂÒÂë¡£ÎÒÓÃNEtbeans Õâ¶«Î÷»ù±¾¿ÉÒÔËãûÓùý, ÓÃmyeclipse¶¼.! ÄǹÀ¼ÆÊÇÄã»·¾³µÄÎÊÌâÁË.! ½¨ÒéÓÃutf-8ÊÔÊÔÒýÓà Õâ¶«Î÷»ù±¾¿ÉÒÔËãûÓùý, ÓÃmyeclipse¶¼.! ÄǹÀ¼ÆÊÇÄã»·¾³µÄÎÊÌâÁË.! ¶Ô½¨ÒéÄãÓÃMyeclipse£¬²¢ÇÒÏÖÔÚ¹«Ë¾¿ª·¢¶¼ÊÇÓõÄMyEclipseÁË! Õâ¸öÎÊÌâÎÒÒ²Óöµ½¹ý ²é³öÀ´ÏÔʾûÎÊÌâ ´æ½øÈ¥¾ÍÂÒÂë ±àÂëÿ¸öµØ·½¶¼Éè¼ÆÁË. ¼ÇµÃÎÒÕâÑùŪµÄ String name=request.getParameter("name"); name=new String(name.getBytes("ISO8859_1"); È»ºó´æ½øÈ¥¾ÍûÎÊÌâÁË ÆäʵÂÒÂë×î¼òµ¥µÄ½â¾ö°ì·¨ÊÇŪ¸öfilter ÒÔºó¾Í¿ÉÒÔ¸ßÕíÎÞÓÇÁË.. ͼƬÔõô²»ÏÔÊ¾ÄØ Á½¸ö»·¾³²»Ò»Ñù£¬¸Ä³ÉÒ»ÑùµÄÊÔÊÔ¡£ ÄãÔÚ°²×°Êý¾Ý¿âµÄ¹ý³ÌÖÐûÓÐÉèÖÃ×Ö·û±àÂ룬ÕýÈç10Â¥ÄǸöͼÄÇÑùÉèÖᣠÉèÖÃÍêÖ®ºóÓ¦¸Ã¾ÍûÎÊÌâÀ² ºÜÎÞÁ¦µÄ˵£¬´ÓÂòÕûºÃ¹ýÕâСÊý¾Ý¿âµÄÂÒÂëÎÊÌ⡣ʵ¼Ê¿ª·¢Ò²Ã»ÓùýËü£¬Ò»Ö±ÊÇÓü׹ÇÎÄ¡£ Mysql ÖгýÁ˿⡢±íÒÔÍ⣬ÿ¸ö×Ö¶ÎÒ²ÊÇ¿ÉÒÔµ¥¶ÀÉèÖñàÂëµÄ£¬Â¥Ö÷¿´¿´¾ßÌå×ֶεıàÂëÊDz»ÊÇÓÐÎÊÌâ Èç¹ûÊý¾Ý¿âÂÒÂëµÄ»°Ê¹ÓÃ10#µÄ·½·¨£¬Èç¹ûÒ³ÃæÂÒÂëµÄ»°; ÔÚÒ³ÃæÉϼӸörequest.setCharacter
Ïà¹ØÎÊ´ð£º
JSPÒ³ÃæÖÐÓжà¸öradio°´Å¥ JSPÒ³Ãæ½«²ÎÊýPOST¸øservlet ÒªÇóÈçÏÂ; 1.Ñ¡ÔñÒ»¸öradio£¬µ÷ÓÃservlet servletÖиù¾Ý²ÎÊýµ÷ÓÃÆäËû½Ó¿Ú£¬³ý·ÇÑ¡ÖиÃradio²¢µã»÷JSPÖеÄʵР......
ÎÒJSPµÄÒ³ÃæÊÇ£º <%@ page language="java" contentType="text/html; charset=gb2312" %> <script> function Save(){ xmlHttp=GetXmlHttpObject() if(xmlHttp==nul ......
ΪʲôHTMLÒÔ¼°Ò»Ð©ÆäËü±êÇ©»áÏÔÊ¾Ò»Ð©ÌØ¶¨±íÏÖÐÎÊ½ÄØ£¿ÈçHTMLÖеĻ»ÐбêÇ©<BR/>ÔڵײãÊÇÔõÑùʵÏÖµÄÄØ£¿ÏÖʵµÄÔÀíÊÇÊ²Ã´ÄØ È¥W3C¹Ù·½ÍøÕ¾ÉÏ£¬¿´¿´°É£¡ÎÒÏëÒ»¿´Äã¾ÍÃ÷°×ÁË ÎҲºͱàÒëÔÀíÓйأ¬ä¯ÀÀÆ÷Àï¿É ......
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 52 in the jsp file: /vip_info.jsp ÕË cannot be resolved 49: <table border="1& ......