I'm currently playing around with my Struts2 config for wildcard testing and I'm stuck with this one.
<action name="/*/*" class="checkBlogUrl" method="testing">
<param name="blogSiteUrl">{1}</param>
<param name="test">{2}</param>
<result name="success">/WEB-INF/jsp/cmsPages/index.jsp</result>
</action>
<action name="/*/postPreview1" class="blogPostAction" method="test">
<param name="blogSiteUrl">{1}</param>
<result name="success">/WEB-INF/jsp/cmsPages/templatePicker.jsp</result>
</action>
If I access myurl.com/hello/hi
I will be redirected to index.jsp
.
But if I access myurl.com/hello/postPreview1
I will also be redirected to index.jsp
instead of templatePicker.jsp
.
Am I doing something wrong here? The struts wildcard doc said that the last one will win
EDIT:
Just tried to switch them around and it worked! Am I misreading the doc?