JSPÖÐÎÄÁ´½Ó/tomcatÖÐÎÄ·¾¶
WEB½øÐÐÉÏ´«ÖÐÎÄÎļþÃûµÄÎļþʱûÎÊÌ⣬µ«ÏÂÔØµÄʱºò³öÏÖÎÊÌ⣬¾¹ýÒ»·¬²éÕÒÖ®ºóÔÀ´ÊÇTOMCATĬÈϲ»Ö§³ÖÖÐÎÄ·¾¶ºÍÖÐÎÄÎļþ£¬Èç¹ûÖ±½Ó´ÓApacheÕ¾µãÖÐÏÂÔØTomcat£¬ÎÞÂÛÊǰ²×°°æµÄexeÎļþ£¬»¹ÊÇ
½âѹËõµÄZIPÎļþ£¬ÄÚÖõĶÔÓÚgetÐÒéÖеÄURL±àÂë¶¼ÊÇISO-8859-1,Õâ¸ö×Ö·û¼¯²»ÄÜÖ±½ÓÖ§³ÖÖÐÎĵÈË«×Ö½ÚµÄÐÅÏ¢£¬¶øÖÐÎÄÎļþµÄÏÂÔØÁ´½ÓÇ¡
Ç¡ÊÇͨ¹ýgetÐÒé½øÐеġ£²»¹ýÖ»ÐèÒªÐÞ¸ÄÆäÅäÖÃÎļþ¾ÍÐÐÁË£¬¾ßÌå·½·¨ÈçÏÂ
ÔÚServer.xmlÎļþÖÐÌí¼ÓÒ»¸öÃûΪURIEncodingµÄÊôÐÔ£¬ËüÓÃÓÚ¶ÔHTTPÇëÇóÖеÄget·½·¨´«¹ýÀ´µÄURL½øÐбàÂë¡£ÒÔÏÂ˵Ã÷ÐÞ
¸ÄTomcat°²×°Ä¿Â¼ÖеÄconfigÎļþ¼ÐÖеÄserver.xmlÎļþµÄ·½·¨¡£
´ò¿ªconfig/server.xmlÎļþ£¬Èç¹ûûÓÐÐ޸ĹýÕâ¸öÎļþ£¬Ó¦¸Ã¿ÉÒÔÔÚÆäÖÐÕÒµ½ÈçÏ´úÂ룺
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
Õâ¶Î´úÂë¹æ¶¨ÁËTomcat¼àÌýHTTPÇëÇóµÄ¶Ë¿ÚºÅµÈÐÅÏ¢£¬¿ÉÒÔÔÚÕâÀïÌí¼ÓÒ»¸öÊôÐÔ£ºURIEncoding£¬½«¸ÃÊôÐÔÖµÉèÖÃΪUTF-8£¬¼´¿ÉÈÃ
Tomcat²»ÔÙÒÔISO-8859-1µÄ±àÂë´¦ÀígetÇëÇ󡣸ü¸ÄºóµÄ´úÂëÈçÏÂËùʾ£¨ºìÉ«²¿·ÖΪÐÂÌí¼ÓµÄ´úÂ룩£º
<Connector port="8080"
URIEncoding="utf-8"
protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
ÕâÑùÐ޸ĺóÖØÆôTomcat£¬²âÊԳɹ¦¡£
Ïà¹ØÎĵµ£º
Ðí¶àWebÓ¦Óá¢ÆóÒµÓ¦ÓÃÉæ¼°µ½³¤Ê±¼äµÄ²Ù×÷£¬ÀýÈ縴ÔÓµÄÊý¾Ý¿â²éѯ»ò·±ÖصÄXML´¦ÀíµÈ£¬ËäÈ»ÕâЩÈÎÎñÖ÷ÒªÓÉÊý¾Ý¿âϵͳ»òÖмä¼þÍê³É£¬µ«ÈÎÎñÖ´ÐеĽá¹ûÈÔ¾ÉÒª½èÖúJSP²ÅÄÜ·¢Ë͸øÓû§¡£±¾ÎĽéÉÜÁËÒ»ÖÖͨ¹ý¸Ä½øÇ°¶Ë±íÏÖ²ãÀ´¸ÄÉÆÓû§¸Ð¾õ¡¢¼õÇá·þÎñÆ÷¸ºÔصİ취¡£
µ±JSPµ÷ÓÃÒ»¸ö±ØÐ볤ʱ¼äÔËÐеIJÙ×÷£¬ÇҸòÙ×÷µÄ½á¹û²»ÄÜ£¨ÔÚ·þÎñ ......
Jsp ÒÔUrl·½Ê½´«²ÎÊýÂÒÂëÎÊÌâ
±ÈÈç˵ xxxx.action?name="ÖÐÎÄ"
´«µ½Action »á·¢Éú ÂÒÂë
½â¾ö·½·¨1£ºÒª¸Ätomcat µÄ±àÂë
2£º
Òª¸Ä³ÉÕâ¸ö·½Ê½¿ÉÒÔ½â¾öÂÒÂ룺
xxxx.action?name=encodeURIComponent("ÖÐÎÄ"); ......
<?xml version="1.0" encoding="gb2312" ?>
<?xml-stylesheet type="tet/css" href="mystyle.css" ?>
<%@ page errorPage="error.jap" %>
<%@ page contentType="text/xml" %>
<realmarid>
»ÊÂí»¨Ãû²á
<athlete>
<name>Æë´ïÄÚ</name>
<country> ......
ÔÚʹÓÃÊý¾Ý¿âµÄ¹ý³ÌÖУ¬²»¿É±ÜÃâµÄÐèҪʹÓõ½·ÖÒ³µÄ¹¦ÄÜ£¬¿ÉÊÇJDBCµÄ¹æ·¶¶Ô´ËȴûÓкܺõĽâ¾ö¡£¶ÔÓÚÕâ¸öÐèÇóºÜ¶àÅóÓѶ¼ÓÐ×Ô¼ºµÄ½â¾ö·½°¸£¬±ÈÈçʹÓÃVectorµÈ¼¯ºÏÀàÏȱ£´æÈ¡³öµÄÊý¾ÝÔÙ·ÖÒ³¡£µ«ÕâÖÖ·½·¨µÄ¿ÉÓÃÐԺܲÓëJDBC±¾ÉíµÄ½Ó¿ÚÍêÈ«²»Í¬£¬¶Ô²»Í¬ÀàÐ͵Ä×ֶεÄÖ§³ÖÒ²²»ºÃ¡£ÕâÀïÌṩÁËÒ»Ö ......
http://www.ajaxbbs.net/post/extjs/10.html
ÓйØExtGridµ¼³öExcelµÄʵÏÖ·½Ê½£¬ÍøÉÏÒѾÓкܶ࣬¹Ù·½Ò²¸ø³öÁËÒ»¸ö·½°¸£¬´úÂë²»ÊǺÜÍêÉÆ£¬²»¹ýÒѾÓиßÈ˶ÔÕâ¸ö½øÐÐÁËÐÞÕý¡£¾ßÌåʵÏÖ·½Ê½¼°´úÂëÎÒÕâÀï¾Í²»ÔÙ¶à˵ÁË£¬´ó¼Ò¿ÉÒԲο´£º
http://www.dojochina.com/index.php?q=node/1254
£¬¸½¼þ£º
gridToExcel.js.txt
Æä»ù± ......