Re: Internationalization - retaining data

2006-03-21 Thread Ted Husted
If the "forward to the page with  the appropriate locale and
properties being loaded" is a redirect, then the form can be kept in
session scope to retain the input.

The other trick would be to ensure that the command used "to change
the language to French" submit to an action that uses a compatible
ActionForm, so that it can capture the data.

HTH, Ted.

On 3/21/06, Jadeler <[EMAIL PROTECTED]> wrote:
> I've implemented internationalization using Struts to use the  application 
> properties.  If a user is entering some data on the  form and decides to 
> change the language to French, the form is reset  which looses all the data 
> they entered.  Is there an elegant way  to retain the data somehow?  I know 
> that because it does another  request for my locale Struts action, it will 
> forward to the page with  the appropriate locale and properties being loaded. 
>  I've thought  about putting the data on the current form as query string to 
> the  locale Struts action when it is called but that involves alot of work  
> if it needs to be done for each page with a form.  Any help or  direction is 
> appreciated.  Thanks.
>
>
>   Jade

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



Internationalization - retaining data

2006-03-21 Thread Jadeler
I've implemented internationalization using Struts to use the  application 
properties.  If a user is entering some data on the  form and decides to change 
the language to French, the form is reset  which looses all the data they 
entered.  Is there an elegant way  to retain the data somehow?  I know that 
because it does another  request for my locale Struts action, it will forward 
to the page with  the appropriate locale and properties being loaded.  I've 
thought  about putting the data on the current form as query string to the  
locale Struts action when it is called but that involves alot of work  if it 
needs to be done for each page with a form.  Any help or  direction is 
appreciated.  Thanks.
  
  
  Jade
  

-
Enrich your life at Yahoo! Canada Finance