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

jspÔõô»ñµÃÒ³ÃæµÄÍêÕûµØÖ·

°üÀ¨²ÎÊý
String path = request.getContextPath();
String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";

Ò»°ã¶¼ÓÃpath ºÍbasepathÀ´»ñÈ¡µ±Ç°Ò³ÃæµÄurl

ÕâûÓÐÒ»¸ö·½·¨Ö±½Ó³öÀ´µÄ£¬ÊǼ¸¸ö·½·¨µÄ×éºÏ¡£
request.getServletPath();
request.getQueryString();
Â¥ÉϵÄÔÙ¼ÓÕâÁ½¸ö·½·¨Äǵõ½µÄ¾ÍÊÇÈ«²¿ÁË¡£

ÒýÓÃ
ÕâûÓÐÒ»¸ö·½·¨Ö±½Ó³öÀ´µÄ£¬ÊǼ¸¸ö·½·¨µÄ×éºÏ¡£
request.getServletPath();
request.getQueryString();
Â¥ÉϵÄÔÙ¼ÓÕâÁ½¸ö·½·¨Äǵõ½µÄ¾ÍÊÇÈ«²¿ÁË¡£


ÎÒÏÖÔڵĵØÖ·Ò»¸öactionºóÃæ¼Ó²ÎÊý£¬ÄãµÄºÃÏñµÃ²»µ½actionÃû×Ö

¶î£¬ÎÒÖªµÀÁËactionÊÇÈ¡²»µ½µÄ¡£¡£¡£

¶÷£¬ºÇºÇ£¬Ö§³ÖÏÂ

ѧϰÁË

¶¦£¬Â·¹ý

¡£¡£Ñ§Ï°¡£


Ïà¹ØÎÊ´ð£º

JSP ½ÓÊÕ FORM Ìá½» - Java / Web ¿ª·¢

Ò»¸öJSPÒ³Ãæ½ÓÊÕÆäËûÒ³ÃæÌá½»¹ýÀ´µÄFORM±íµ¥£¬µ«ÊÇÒªÇóÖ»½ÓÊÕµ±Ç°Õ¾µã¼°Æä×ÓÕ¾µãÌá½»¹ýÀ´µÄFORM±íµ¥£¬ÆäËûÕ¾µãÌá½»¹ýÀ´µÄ±íµ¥²»½ÓÊÕ£¬Õâ¸öÔõôÉèÖã¿
ÓùýÂËÆ÷
filter
½«µ±Ç°Õ¾µã¼°Æä×ÓÕ¾µã·ÅÒ»¸öĿ¼ 
È» ......

¹ØÓÚAJAXºÍJSPµÄһЩСÎÊÌâ¡« - Java / Web ¿ª·¢

ÎÒJSPµÄÒ³ÃæÊÇ£º
<%@ page language="java" contentType="text/html; charset=gb2312"
  %>
<script>
function Save(){
xmlHttp=GetXmlHttpObject()
if(xmlHttp==nul ......

Çó½ÌJSPÏîÄ¿ÖÐÔËÓÃÄ£°åµÄ¼¼Êõ - Java / Web ¿ª·¢

ÇëÎʸ÷λ¸ç¸ç½ã½ã£¬ÈçºÎÔËÓÃÏֳɵÄÄ£°åÀ´ÖÆ×÷ƯÁÁµÄJSPÍøҳѽ,»ØÕßÓзÖ!
×Ô¼º¶¥Ï£¬×ÜÓиßÊÖ°É,ÆÚ´ýÖÐ......


Èç¹ûÖ±½ÓÒýÓýøÈ¥

¿ÉÒÔÖ±½ÓÓÃjspµÄÖ¸ÁҲ¿ÉÒÔÓÃfreemarkÒýÓ㬼ǵøø·Ö

лл¸÷λÁË£¬¿´À´Î ......

jspµÄÎÊÌâ - Java / Web ¿ª·¢

´ó¼ÒºÃ£¬ÎÒÔÚJSPµÄ³õѧÕߣ¬ÔÚ±à³ÌÖÐÓöµ½ÁËÒ»¸öÎÊÌ⣺
<jsp:useBean id="accountBiz" class="bank.AccountBiz" 
scope="application">
Õâ¸ö±êÇ©ÖÐapplicationºÍsessi ......

jsp ǶÈëpdf µÄÎÊÌâ - Java / Web ¿ª·¢

ÎÒµÄ˼·ÊÇ ÉÏ´«£¨ÎļþÑ¡Ôñ¿ò£©-> ͨ¹ý·¾¶¶ÁÈ¡Îļþ£¬×ª³É¶þ½øÖÆÁ÷¶ÁÈëÊý¾Ý¿â ->Êý¾Ý¿â»ñÈ¡¶þ½øÖÆÁ÷£¬±£´æΪ.pdf ->ÏÔʾ
ÏÖÔÚÇ°Èý²½¶¼ÊÇʵÏÖÁË£¬±£´æµÄPDF¹Ì¶¨Â·¾¶ÒÔ¼°Ãû³Æ£¨·ÅÔÚWebRootĿ¼Ï£¬out.pdf£© ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ