** does not match the backslach character when mapping wildcards in struts.xml
------------------------------------------------------------------------------
Key: WW-2661
URL: https://issues.apache.org/struts/browse/WW-2661
Project: Struts 2
Issue Type: Bug
Components: Core Actions
Affects Versions: 2.1.2
Environment: Windows XP Professional & BEA Weblogic Server v10
Reporter: Becky O'Sullivan
The Developers Guide (a great guide, by the way) states that two asterisks ( **
) will match zero or more characters, including the slash character, for action
names: http://struts.apache.org/2.1.2/docs/wildcard-mappings.html
So I interpret that to mean:
<action name="/edit**" class="org.xyz.MyAction">
<result>/myPage.jsp</result>
</action>
Would work for the following URLs:
http://myDomain/edit
http://myDomain/editabc
http://myDomain/edit/abc
It does work for all words that begin with edit (http://myDomain/editabc)
However, it is not allowing the slash character (http://myDomain/edit/abc)
When it encounters a slash after edit it assumes the following text is an
action name and returns an error like this:
"There is no Action mapped for action name abc."
Did I misinterpret the page's explanation?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.