struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rubens <>
Subject Re: [S2] s:text after locale change displays old locale values?
Date Sun, 24 Feb 2008 04:08:53 GMT

Okay, problem solved.  We must "redirect" to an action that maps to a JSP. 
If one "redirects" to a JSP, the <s:text ...> will not render the correct
locale -- that is how it works on 2.0.11.


                name="success">/index.action</result>  <!-- <<<  NOTE

newton.dave wrote:
> --- Rubens <> wrote:
>> Why?  How do I fix this problem?  I need to use "redirect" to completely
>> refresh the page.  And I am redirecting to a JSP page.  Should I redirect
>> to another action ?? (it would seem to be a waste and confusing to add 
>> another action just to be able to render things in the change locale
> properly.)
> AFAIK the <s:text.../> tag uses the first TextProvider implementation on
> the
> stack to get locale-specific resources, but as I said, it's not entirely
> clear to me what all can affect I18N. It wasn't immediately clear to me
> what
> happens when it doesn't find a TextProvider on the stack.
> <action name="whatever">
>     <result>theJsp.jsp</result>
> </action>
> It's not *that* much overhead to add the action, and it will solve the
> problem, at least temporarily.
> Dave
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message