JspÖеÄPageÖ¸Áî
PageÖ¸ÁîÊÇÓÃÀ´¶¨ÒåÕû¸öJspÒ³ÃæµÄÊôÐÔºÍÕâЩÊôÐÔµÄÖµ
¸ñʽ£º<%@ page Ö¸Áî±ê¼Ç="Öµ"%>
pageÖеÄÖ÷ÒªÖ¸Áî±ê¼ÇÓÐÒÔϼ¸ÖÖ£º
language£ºÉèÖÃJspÒ³ÃæÖÐÓõ½µÄÓïÑÔ£¬Ä¬ÈÏֵΪ"Java"
extends£ºÉèÖõ±Ç°JspÒ³ÃæÒª¼Ì³ÐµÄ¸¸À࣬һ°ãÇé¿öϲ»ÐèÒª½øÐÐÉèÖÃ
import£ºÔÚµ±Ç°JspÒ³ÃæÖе¼ÈëÒªÓõ½µÄJavaÀàËùÔڵİü£¬²»Í¬µÄ°üÓöººÅ¸ô¿ª
ÒÔÏ°üÖеÄÀàÔÚĬÈÏÇé¿öÏÂÒѾ±»¼ÓÈëµ½µ±Ç°JspÒ³Ã棬¶ø²»ÐèÒªÌØÊâÉùÃ÷£ºjava.lang.*£¬java.servlet.*£¬
java.servlet.jsp.*£¬java.servlet.http.*
errorPage£ºÉèÖõ±µ±Ç°JspÒ³Ãæ³öÏÖÒ쳣ʱËùҪתÏòµÄÒ³Ã棻¸ñʽ£ºerrorPage="Òì³£Ò³ÃæÎļþÃû"
isErrorPage£ºÉèÖõ±Ç°µÄjspÒ³ÃæÊÇ·ñ×÷Ϊ´«»Ø´íÎóÒ³ÃæµÄÍøÒ³£»ÓÐtrueºÍfalseÁ½¸öÖµ£¬Ä¬ÈÏΪfalse£»Èç¹ûÉ趨Ϊtrue£¬JspÈÝÆ÷
Ôò»áÔÚµ±Ç°µÄÒ³ÃæÖÐÉú³ÉÒ»¸öException¶ÔÏó
isThreadSafe£º¶¨ÒåJspÈÝÆ÷Ö´ÐÐJsp³ÌÐòµÄ·½Ê½£¬È¡ÖµÈçÏÂ
true£º±íʾJspÈÝÆ÷»áÒÔ¶àÏ̵߳ķ½Ê½ÔËÐÐJspÒ³Ãæ
false£º±íʾJspÈÝÆ÷»áÒÔµ¥Ï̵߳ķ½Ê½ÔËÐÐJspÒ³Ãæ
&nb
Ïà¹ØÎĵµ£º
http://www.ajaxbbs.net/post/extjs/10.html
ÓйØExtGridµ¼³öExcelµÄʵÏÖ·½Ê½£¬ÍøÉÏÒѾÓкܶ࣬¹Ù·½Ò²¸ø³öÁËÒ»¸ö·½°¸£¬´úÂë²»ÊǺÜÍêÉÆ£¬²»¹ýÒѾÓиßÈ˶ÔÕâ¸ö½øÐÐÁËÐÞÕý¡£¾ßÌåʵÏÖ·½Ê½¼°´úÂëÎÒÕâÀï¾Í²»ÔÙ¶à˵ÁË£¬´ó¼Ò¿ÉÒԲο´£º
http://www.dojochina.com/index.php?q=node/1254
£¬¸½¼þ£º
gridToExcel.js.txt
Æä»ù± ......
WEB½øÐÐÉÏ´«ÖÐÎÄÎļþÃûµÄÎļþʱûÎÊÌ⣬µ«ÏÂÔصÄʱºò³öÏÖÎÊÌ⣬¾¹ýÒ»·¬²éÕÒÖ®ºóÔÀ´ÊÇTOMCATĬÈϲ»Ö§³ÖÖÐÎÄ·¾¶ºÍÖÐÎÄÎļþ£¬Èç¹ûÖ±½Ó´ÓApacheÕ¾µãÖÐÏÂÔØTomcat£¬ÎÞÂÛÊÇ°²×°°æµÄexeÎļþ£¬»¹ÊÇ
½âѹËõµÄZIPÎļþ£¬ÄÚÖõĶÔÓÚgetÐÒéÖеÄURL±àÂ붼ÊÇISO-8859-1,Õâ¸ö×Ö·û¼¯²»ÄÜÖ±½ÓÖ§³ÖÖÐÎĵÈË«×Ö½ÚµÄÐÅÏ¢£¬¶øÖÐÎÄÎļþµÄÏÂÔØ ......
1.Ê×ÏÈÃ÷È·Á½¸ö¸ÅÄ
·þÎñÆ÷·¾¶£ºÐÎÈ磺http://192.168.0.1/µÄ·¾¶
WebÓ¦Ó÷¾¶£ºÐÎÈ磺http://192.168.0.1/yourwebappµÄ·¾¶
2.¹ØÓÚÏà¶Ô·¾¶Óë¾ø¶Ô·¾¶µÄÃèÊö£º
ServletÖУ¬"/"´ú±íWebÓ¦ÓõĸúĿ¼¡£ºÍÎïÀí·¾¶µÄÏà¶Ô±íʾ¡£ÀýÈ磺"./" ´ú±íµ±Ç°Ä¿Â¼, "../"´ú±íÉϼ¶Ä¿Â¼¡£ÕâÖÖÀàËƵıíʾ£¬Ò²ÊÇÊôÓÚÏà¶Ô·¾¶¡£Õâ ......
ͨ¹ýrequest.getParameter(String name)·½Ê½È¡²ÎÊýnameÖеÄֵʱ£¬ÈçºÎ½â¾öÖÐÎÄÂÒÂëÎÊÌâ
·½·¨Ò»£ºÔÚËùÓеÄÈ¡ÖµÓï¾ä֮ǰÉèÖÃrequestµÄ±àÂ뷽ʽ£¬¼´request.setCharacterEncoding("utf-8") //utf-8Ò²¿ÉÒÔΪgb2312
Ç°ÌáÌõ¼þÊÇ£º²ÎÊýnameËùÔÚµÄÒ³ÃæºÍ»ñÈ¡ ......
<%
//header.jsp
out.println("Protocol: " + request.getProtocol() + "<br>");
out.println("Scheme: " + request.getScheme() + "<br>");
out.println("Server Name: " + request.getServerName() + "<br>" );
out.println(&quo ......