Thank you for your response.
I try do your solution with
only litle change  (I'm beginer in struts .May be I understand you)
    <action    path="/language"
               type="some.package.LanguageAction"
<!--type="some.package.LanguageForm" -->
               name="languageForm">
    </action>
It's work.

But how I can know in LanguageAction url of page where I click choose
language.
I need this ,becouse  I want forward to page when I click choose language.


When I click choose language in Category.jsp I want forward to
CategoryEditAction becouse CategoryEditAction
populate Category.jsp localized values from db







----- Original Message -----
From: "Oleg V Alexeev" <[EMAIL PROTECTED]>
To: "Valery Kocubinsky" <[EMAIL PROTECTED]>
Sent: Saturday, June 09, 2001 11:22 AM
Subject: Re[2]: Can you do this with internationalisation.


> Hello Valery,
>
> Saturday, June 09, 2001, 11:42:43 AM, you wrote:
>
> VK>      Hello
>
> VK> My boss wants to have each  web page with link of language choose.
>
> VK> Now each page have 2 link : french and english.I define link as
> VK> <a href="<%= request.getContextPath() %>?locale=en_CA" ><bean:message
key="language.english"/><a>
> VK> and
> VK> <a href="<%= request.getContextPath() %>?locale=fr_CA" ><bean:message
key="language.french"/><a>
>
> 1. create action to perform language switch - LanguageAction
> 2. create global forward mapping in struts-config for this action -
>
>    <forward   name="language.en" path="/langauge.do?locale=en_CA"/>
>    <forward   name="language.fr" path="/langauge.do?locale=fr_CA"/>
>
>    and action mappings itself
>
>     <action    path="/language"
>                type="some.package.LanguageForm"
>                name="languageForm">
>     </action>
>
> 3. create form to catch locale strings from request LanguageForm
>    and register it in struts-config -
>
>     <form-bean      name="languageForm"
>                     type="some.pachage.LanguageForm"/>
>
> 4. place to the jsp such links as -
>
>  <html:link forward="language.en"><bean:message
key="language.english"/></html:link>
>  <html:link forward="language.fr"><bean:message
key="language.french"/></html:link>
>
> VK> But I have problem with populate form .
> VK> For example :
> VK>    For modify category page I create Action EditCategoryAction.
> VK> This action populate localizable list "parent_category"  from
Oracle.And forward to category.jsp .
> VK> All ok.
> VK> When I click on french or english link message replace new localized
messages .But list still old,becouse
> VK> editCategoryAction not call again.
>
> VK>   Problem:
> VK> I want populate localized list  from action .But when I click on
change language link
> VK> Action not called again.
> VK> (Of course I can populate localizable list in jsp page .But in this
case many logic exist on jsp page)
>
> VK>   If anyone have this problem or know other solution help me.
>
> --
> Best regards,
>  Oleg                            mailto:[EMAIL PROTECTED]
>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply via email to