<% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %>
jsp获取path
原文:http://my.oschina.net/chworld/blog/511779