Why don't use the Convention Plugin?

2014-05-23 10:58 GMT+02:00 Antonio Sánchez <ads...@gmail.com>:
> Hello.
>
> Given:
>
>         <action name="*Person" class="some.package.PersonAction"
> method="{1}">
>                     <result
> name="input">/WEB-INF/jsp/editPerson.jsp</result>
>                     <result name="success">/WEB-INF/jsp/persons.jsp</result>
>         </action>
>
> And url:
>
>         http://localhost:8080/appctx/Person
>
> No matching is found and Struts redirects to "input" result directly. In
> order to recognize "Person" as an action additional configuration is
> required:
>
>         <action name="Person" class="..." method="list">
>                     <result name="success">/WEB-INF/jsp/persons.jsp</result>
>         </action>
>
> Is there anyway of avoiding this extra definition, just using the wildcard
> one?
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>

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

Reply via email to