jspÔõô»ñµÃÒ³ÃæµÄÍêÕûµØÖ·
°üÀ¨²ÎÊý
String path = request.getContextPath();
String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
Ò»°ã¶¼ÓÃpath ºÍbasepathÀ´»ñÈ¡µ±Ç°Ò³ÃæµÄurl
ÕâûÓÐÒ»¸ö·½·¨Ö±½Ó³öÀ´µÄ£¬ÊǼ¸¸ö·½·¨µÄ×éºÏ¡£
request.getServletPath();
request.getQueryString();
Â¥ÉϵÄÔÙ¼ÓÕâÁ½¸ö·½·¨Äǵõ½µÄ¾ÍÊÇÈ«²¿ÁË¡£
ÎÒÏÖÔڵĵØÖ·Ò»¸öactionºóÃæ¼Ó²ÎÊý£¬ÄãµÄºÃÏñµÃ²»µ½actionÃû×Ö
¶î£¬ÎÒÖªµÀÁËactionÊÇÈ¡²»µ½µÄ¡£¡£¡£
¶÷£¬ºÇºÇ£¬Ö§³ÖÏÂ
ѧϰÁË
¶¦£¬Â·¹ý
¡£¡£Ñ§Ï°¡£
Ïà¹ØÎÊ´ð£º
Ò»¸öJSPÒ³Ãæ½ÓÊÕÆäËûÒ³ÃæÌá½»¹ýÀ´µÄFORM±íµ¥£¬µ«ÊÇÒªÇóÖ»½ÓÊÕµ±Ç°Õ¾µã¼°Æä×ÓÕ¾µãÌá½»¹ýÀ´µÄFORM±íµ¥£¬ÆäËûÕ¾µãÌá½»¹ýÀ´µÄ±íµ¥²»½ÓÊÕ£¬Õâ¸öÔõôÉèÖã¿
ÓùýÂËÆ÷
filter
½«µ±Ç°Õ¾µã¼°Æä×ÓÕ¾µã·ÅÒ»¸öĿ¼
È» ......
ÎÒJSPµÄÒ³ÃæÊÇ£º
<%@ page language="java" contentType="text/html; charset=gb2312"
%>
<script>
function Save(){
xmlHttp=GetXmlHttpObject()
if(xmlHttp==nul ......
ÇëÎʸ÷λ¸ç¸ç½ã½ã£¬ÈçºÎÔËÓÃÏֳɵÄÄ£°åÀ´ÖÆ×÷ƯÁÁµÄJSPÍøҳѽ,»ØÕßÓзÖ!
×Ô¼º¶¥Ï£¬×ÜÓиßÊÖ°É,ÆÚ´ýÖÐ......
Èç¹ûÖ±½ÓÒýÓýøÈ¥
¿ÉÒÔÖ±½ÓÓÃjspµÄÖ¸ÁҲ¿ÉÒÔÓÃfreemarkÒýÓ㬼ǵøø·Ö
лл¸÷λÁË£¬¿´À´Î ......
´ó¼ÒºÃ£¬ÎÒÔÚJSPµÄ³õѧÕߣ¬ÔÚ±à³ÌÖÐÓöµ½ÁËÒ»¸öÎÊÌ⣺
<jsp:useBean id="accountBiz" class="bank.AccountBiz"
scope="application">
Õâ¸ö±êÇ©ÖÐapplicationºÍsessi ......
ÎÒµÄ˼·ÊÇ ÉÏ´«£¨ÎļþÑ¡Ôñ¿ò£©-> ͨ¹ý·¾¶¶ÁÈ¡Îļþ£¬×ª³É¶þ½øÖÆÁ÷¶ÁÈëÊý¾Ý¿â ->Êý¾Ý¿â»ñÈ¡¶þ½øÖÆÁ÷£¬±£´æΪ.pdf ->ÏÔʾ
ÏÖÔÚÇ°Èý²½¶¼ÊÇʵÏÖÁË£¬±£´æµÄPDF¹Ì¶¨Â·¾¶ÒÔ¼°Ãû³Æ£¨·ÅÔÚWebRootĿ¼Ï£¬out.pdf£© ......