获取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
时间: 2025-01-15 09:43:01
获取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