Re: Changing language (locale) with a button

2005-11-08 Thread Thomas Hamacher
Michael, thank you very much for your fast response. You're idea sounds really interesting and might be a really good solution. May I ask you a few more questions: Concerning 1.: Where exactly should I check for the GET or the POST-Request. Would you recommend to check for the GET/POST-Method

Re: Changing language (locale) with a button

2005-11-07 Thread Michael Jouravlev
On 11/7/05, Thomas Hamacher <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I have the following problem and cannot find a real solution to it. Usually > this should be a common and known problem, so I'm wondering if I anyone has > found a solution to this. > > I have internationalized my struts 1.2.

Re: Changing language (locale) with a button

2005-11-07 Thread Danny Lee
Pretty easy, I'm storing each actual action in "lastRedirect" - attribute and each actual parameter in "lastParameter". Affter some critical actions I do redirect to this saved stuff. It works well, but there are some non critical problems (esp. with user doing these actions after clicking on

Re: Changing language (locale) with a button

2005-11-07 Thread Thomas Hamacher
Danny, thank you very much for this ideas. Unfortunately the "display"-stuff together with the request.getRequestURL() doesn't work for me either, because I am working with tiles and therefor the requestURL is not correct. So I am pretty interested in what you do with the "lastAction"-Attribute

Re: Changing language (locale) with a button

2005-11-07 Thread Danny Lee
Here my solution (some stuff I found on the net and adapted for my needs). I don't actually use the "display" stuff, couse I do it otherway... so you can ignore it. I hope it'll help Cheers Danny * 1) Action public class ChangeLocaleAction extends Action {

Changing language (locale) with a button

2005-11-07 Thread Thomas Hamacher
Hi everyone, I have the following problem and cannot find a real solution to it. Usually this should be a common and known problem, so I'm wondering if I anyone has found a solution to this. I have internationalized my struts 1.2.7 application through tiles and the use of ResourceBundle an jav