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.

Example:
        <action
            name="index">
            <result>/jsp/index.jsp</result>
        </action>

        <action
            name="changeLocale"
            class="com.softlagos.web.struts2.common.LocaleAction">
            <result
                type="redirect"
                name="success">/index.action</result>  <!-- <<<  NOTE THIS
CHANGE -->
        </action>



newton.dave wrote:
> 
> --- Rubens <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-S2--s%3Atext-after-locale-change-displays-old-locale-values--tp15655762p15660738.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to