You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by developer researcher <ja...@gmail.com> on 2019/01/26 00:19:09 UTC
Migration struts.xml to Convention Plugin - Struts 2.5.20
Hello,
I want to migrate a web application based on struts.xml to use annotations,
but I have not found documentation and/or examples for the next cases:
*1. <default-action-ref name="defaultAction"/>*
How should be the @Action (?) Annotation be for the default action?
*2. Global Exception Handling*
The documentation of convention plugin include exception mapping for action
level and class level, but How should global exceptions and results be
configured?
Thanks and regards
Re: Migration struts.xml to Convention Plugin - Struts 2.5.20
Posted by Lukasz Lenart <lu...@apache.org>.
sob., 26 sty 2019 o 01:19 developer researcher
<ja...@gmail.com> napisał(a):
>
> Hello,
>
> I want to migrate a web application based on struts.xml to use annotations,
> but I have not found documentation and/or examples for the next cases:
>
> *1. <default-action-ref name="defaultAction"/>*
>
> How should be the @Action (?) Annotation be for the default action?
@Action("defaultAction")
> *2. Global Exception Handling*
>
> The documentation of convention plugin include exception mapping for action
> level and class level, but How should global exceptions and results be
> configured?
You can only configure this in struts.xml
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org