获取contextPath
<s:property value="#request.get(‘javax.servlet.forward.context_path‘)" />
获取requestURI
<s:property value="#request.get(‘javax.servlet.forward.request_uri‘)" />
Struts2 获取项目名称,码迷,mamicode.com
原文地址:http://www.cnblogs.com/voctrals/p/3698842.html