I have both defined <default-class-ref/> and <default-action-ref/>. I need both 
because I'm using <default-action-ref/> as a welcome action. 

In more complicated cases I can always define a 'localize' method. 

Thank you very much. 


El Miércoles, 24 de julio de 2013 15:10:36 Lukasz Lenart escribió:
> <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
> > 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-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
>

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

Reply via email to