Hi guys,

I have a default mapping, eg,

Code:
    <action name="*" >
      <result>/_{1}.jsp</result>
    </action>
    <action name="HelloWorld" class="test.action.HelloWorld" >
      <result name="success">/HelloWorld.jsp</result>
    </action>



In this case, if an action can not be matched it will be forwarded to
/_{action name}.jsp, eg, /X.action will be forwarded to _X.jsp

It works great, however if I remove XML configurations of the action
HelloWorld, and use annotation with test.action.HelloWorld in code, then my
request to /HelloWorld.action goes to /_HelloWorld.jsp instead of class
test.action.HelloWorld.

So how can I use the default mapping with annotation, and fall to default
mapping only when no match in BOTH ANNOTATION AND XML configuration?
-- 
View this message in context: 
http://www.nabble.com/default-mapping-with-annotation-tp21366005p21366005.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to