摘要:
String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; base href="%=basePath%"base href="..."是用来表明当前页面的相对路径所使用的根路径的。比如,页面内部有一个连接,完整的路径应该是 http://localhost:80/myblog/authen/login.do其中http://server/是服务器的基本路 阅读全文
posted @ 2011-01-10 10:37
草原和大树
阅读(474)
评论(0)
推荐(1)
浙公网安备 33010602011771号