日期:2014-05-16  浏览次数:20484 次

取JSP,Action中全路径的方法
取JSP,Action中全路径的方法JSP中:${pageContext.request.contextPath} 
      
利用EL表达式,相当于http://localhost:8080/应用名称Jave类中:
String path = request.getScheme()+"://" + request.getServerName()+ ":"+ request.getServerPort()+ request.getContextPath();