jsp中获取地址的写法

时间:2014-12-01 03:47:59
【文件属性】:
文件名称:jsp中获取地址的写法
文件大小:28KB
文件格式:DOC
更新时间:2014-12-01 03:47:59
basePath String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 的详解

网友评论

  • 谢谢啊,刚好用到了