Given the following action mappings, I can reach every JSP bar one:
<action path="/pathtest/"
type="org.apache.struts.actions.ForwardAction"
parameter="/pt/root.jsp"/>
<action path="/pathtest/one"
type="org.apache.struts.actions.ForwardAction"
parameter="/pt/one.jsp"/>
<action path="/pathtest/one/"
type="org.apache.struts.actions.ForwardAction"
parameter="/pt/one-slash.jsp"/>
<action path="/pathtest/one/*"
type="org.apache.struts.actions.ForwardAction"
parameter="/pt/one-slash-star.jsp"/>
<action path="/pathtest/one/*/two"
type="org.apache.struts.actions.ForwardAction"
parameter="/pt/one-slash-star-two.jsp"/>
<action path="/pathtest/one/*/two/"
type="org.apache.struts.actions.ForwardAction"
parameter="/pt/one-slash-star-two-slash.jsp"/>
<action path="/pathtest/one/*/two/**"
type="org.apache.struts.actions.ForwardAction"
parameter="/pt/one-slash-star-two-slash-sstar.jsp"/>
The problem mapping is "/pathtest/one/*/two/" (or "/pathtest/one/*/two/**",
depending on how you look at it...) Basically, the former is never matched.
Requests to ".../two/" and ".../two/whatever..." are both matched by the
path with the '**' wildcard expression.
I can probably live with this, given that the ".../two" mapping (no
trailing '/') works as expected, but it's inconsistent with the behaviour
for single-* mappings.
Is this intentional? Is there a way around it?
L.
--
Laurie, Open Source advocate, Java geek and novice blogger:
http://www.holoweb.net/~laurie/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]