Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

jspÖÐrequestÂÒÂëÎÊÌ⣨¼±£© - Java / Web ¿ª·¢

¸÷λÀÏ´óºÃ¡£¡£¡£Ð¡µÜÓÐÒ»¸öÂÒÂëÎÊÌâ¼±Ðè°ïæ½â¾ö
ÎÒÔÚ±¾Ò³ÖÐÓÃrequest.getParameter("name")È¡±äÁ¿¡£¡£±äÁ¿µÄ¸³ÖµÎªºº×Ö¡£ÎÒÔÚÒ³ÃæµÄ¿ªÍ·¼ÓÁË<%@ page language = "java" contentType="text/html;charset=gb2312"%>¡£ÔÚÓÃrequest½ÓÊÕֵ֮ǰҲ¼ÓÁËrequest.setCharacterEncoding("GB2312");ÎÒµÄÌá½»·½·¨ÊÇÓÃpost¡£actionΪ±¾Ò³¡£¡£µ«È¡µ½µÄֵʼÖÕΪÂÒÂ룬һ¶ÑÎʺÅ?????£¬ÄÄλÄÜ°ïÎÒ½â¾öһϣ¨¼±£©
String filename=new String(request.getParameter("filename").getBytes("ISO-8859-1"),"UTF-8");//GET & POST

<%request.setCharacterEncoding("GB2312");%> //POST

²»ÖªµÀÄã»á²»»áд¹ýÂËÆ÷¡£

Ò»°ãÇé¿öÖ»ÒªÄãǰ̨ҳÃæÉèÖóÉutf-8. È»ºóÔÚÅä¸ö¹ýÂËÆ÷¾ÍûÓÐÎÊÌâÁË¡£

¿´¿´ÄãµÄÌá½»Ò³ÃæµÄ±àÂëÊDz»ÊÇgb2312£¬²»ÊǸĹýÀ´Ó¦¸Ã¾ÍûÊÂÁË

»¹ÒªÉèÖÃÒ»ÏÂÁ½²½£º
tomcatµÄserver.xmlÀïÃæÉèÖÃURIEncoding
web.xmlÀïÉèÖÃfilter

good luck



ÏëÒª³¹µ×½â¾ö£¬×îºÃÊÇ°ÑËùÓеÄ×Ö·û¼¯¶¼ÉèÖóÉUTF-8£¬ÕâÖÖ·½·¨ÍøÉϺܶ࣬Äã¿ÉÒÔËÑË÷һϡ£
Èç¹ûÄãÖ»ÊÇÏë½â¾öÕâ¸öÎÊÌ⣬ÄÇÖ»ÒªÁÙʱת»»Ò»Ï¾ÍÐÐÁË
Java code:
String filename=new String(request.getParameter("filename").getBytes("ISO-8859-1"),"GB2312");

¼ÇµÃÓÃGB2312£¬ÒòΪÄãÒ³ÃæÒ²ÊÇÓõÄÕâ¸ö¡£

struts ÐèÓõ½¹ýÂËÆ÷

ÉèÖÃ×Ö·û¼¯£¬Ò³Ãæ´«µÝÊý¾Ý¼ÇµÃת»»±àÂë

²¹³äһϣºString


Ïà¹ØÎÊ´ð£º

JSP/Servlet½»»¥ - Java / Web ¿ª·¢

JSPÒ³ÃæÖÐÓжà¸öradio°´Å¥
  JSPÒ³Ã潫²ÎÊýPOST¸øservlet
  
  ÒªÇóÈçÏÂ;
  1.Ñ¡ÔñÒ»¸öradio£¬µ÷ÓÃservlet servletÖиù¾Ý²ÎÊýµ÷ÓÃÆäËû½Ó¿Ú£¬³ý·ÇÑ¡ÖиÃradio²¢µã»÷JSPÖеÄʵР......

FCKÉÏ´«Îļþµ½linux·þÎñÆ÷ÎÊÌâ - Java / Java EE

ÇëÎÒÓÃFCKÉÏ´«Îļþ,ÔÚ±¾µØµÄwindows»úÉϲâÊÔ¿ÉÒÔ£¬µ«²¿Êðµ½linux·þÎñÆ÷ÉϾÍÉÏ´«²»ÁËÎļþ£¬ÉÏ´«Îļþʱһֱ¿¨ÔÚÄÇÀï¡£Íû¸÷λ´óϺָµã£¬Ð»Ð»£¡
·¹ý£¬°ïÄ㶥һÏ¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£

ÉÏ´«ÎļþµÄ·¾¶ÎÊÌ⣬ ......

tomcat»·¾³ÏÂjsp±àÒë´íÎó£¬Çó½â£¡ - Java / Web ¿ª·¢

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& ......

JSP·­Ò³ÎÊÌâ - Java / Java EE

JSPÖÐÒª´ÓÊý¾Ý¿âÀïÃæ¶ÁÈ¡Êý¾Ý ÿҳÏÔʾ5ÌõÊý¾Ý£¬Òª½øÐз­Ò³£¬»¹Òª·µ»ØÇ°Ò»Ò³ ¸ÃÔõôʵÏÖ°¡
ÓõÄʲôÊý¾Ý¿âÄØ£¿£¿£¿

MYSQL


....лл ÎÒÏÈ¿´¿´´úÂë

http://my.donews.com/benz/2006/10/21/YnmQXKsKWNgKiTJ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ