本人不可以上网,只可以上这个javaeye ,烦躁中。
比如: http://127.0.0.1:9090/slm/action.do (slm 是项目的名字)
本人不可以上网,只可以上这个javaeye ,烦躁中。
比如: http://127.0.0.1:9090/slm/action.do (slm 是项目的名字)
myeclipse默认的jsp文件中有这个,这玩意就是做这个事的。
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>