4
不断在struts2中,是否可以使用可选的patternMapping与变量?
<constant name="struts.enable.SlashesInActionNames" value="true"/>
<constant name="struts.mapper.alwaysSelectFullNamespace" value="false"/>
<constant name="struts.patternMatcher" value="regex" />
当前版本
<action name="list/{pageNo}" method="list" class="xx.GroupAction">
<result type="dispatcher">/WEB-INF/jsp/sys/group/list.jsp</result>
</action>
<action name="list">
<result type="redirectAction">list/</result>
</action>
这就是我想要
<action name="list(/{pageNo})?" method="list" class="xx.GroupAction">
<result type="dispatcher">/WEB-INF/jsp/sys/group/list.jsp</result>
</action>
它可以达到我想要介绍什么?