constant
<constant name="struts.enable.SlashesInActionNames" value="true"/>
<constant name="struts.mapper.alwaysSelectFullNamespace" value="false"/>
<constant name="struts.patternMatcher" value="regex" />
Current version
<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>
this is what i want
<action name="list(/{pageNo})?" method="list" class="xx.GroupAction">
<result type="dispatcher">/WEB-INF/jsp/sys/group/list.jsp</result>
</action>
Introduced from wildcard-mappings
Can I achieve what I want?
source
share