Wildcard mappings match not as expected
---------------------------------------
Key: WW-2529
URL: https://issues.apache.org/struts/browse/WW-2529
Project: Struts 2
Issue Type: Bug
Components: XML Configuration
Reporter: Kris Coolsaet
Consider the following wildcard mapping in the struts.xml file
<action name="List*s" class="actions.List{1}s">
<result>list{1}s.jsp</result>
</action>
This mapping works as expected for actions with names like 'ListAccounts', but
does not seem to work with the action named
'ListSponsors'. My guess is that {1} is set to 'Spon' instead of the 'Sponsor'
I expected. (The error messages are not very
informative.)
If this is the intended behaviour, it would be a good idea to document this
with an example.
In this particular case a workaround consist of using the following wildcard
mapping instead
<action name="List*" class="actions.List{1}">
<result>list{1}.jsp</result>
</action>
but in other cases it might not be so easy.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.