1,在struts2.xml如果要在action的配置的name属性中包含"/",则需要配置一个常量就能达到效果,代码如下:
在struts.xml中添加如下配置:
<constant name="struts.enable.SlashesInActionNames" value="true"></constant>
ps:具体的相关参数可以在struts2-core-xxx.jar\org.apache.struts\default.properties属性文件中查找
1,在struts2.xml如果要在action的配置的name属性中包含"/",则需要配置一个常量就能达到效果,代码如下:
在struts.xml中添加如下配置:
<constant name="struts.enable.SlashesInActionNames" value="true"></constant>
ps:具体的相关参数可以在struts2-core-xxx.jar\org.apache.struts\default.properties属性文件中查找