struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Defining actions for i18n
Date Wed, 24 Jul 2013 13:10:36 GMT
<action name="someOtherSimpleActionWithLocalizationRequired">
    <result>/WEB-INF/jsp/I18nedPage.jsp</result>
</action>

This way should be simpler and maybe you can use wildcard matching.
You can also define <default-class-ref/> or <default-action-ref/>


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

2013/7/24 Antonio Sánchez <juntandolineas@gmail.com>:
> Hello.
>
> I'm defining some actions with no logic, they only result in some JSP. Usually this is
defined like this:
>
>         <action name="someSimpleAction" class="..." >
>             <result>/WEB-INF/jsp/Page.jsp</result>
>         </action>
>
> But l10n is required, so I'm doing this:
>
>         <action name="someSimpleActionWithLocalizationRequired" class="..." method="localize">
>             <result>/WEB-INF/jsp/I18nedPage.jsp</result>
>         </action>
>
>         <action name="someOtherSimpleActionWithLocalizationRequired" class="..." method="localize">
>             <result>/WEB-INF/jsp/I18nedPage.jsp</result>
>         </action>
>
> where localize just returns SUCCESS.
>
> Is there any other way to handle this? Is this an acceptable approach?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>

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


Mime
View raw message