I'd like to implement a multilingual web app with Struts.
There are lang image buttons on all jsp pages.
I'd like to implement in the way that when user clicks the button, the current page will be refreshed(resubmitted) and the text on that page will be converted into that of the selected lang.
However, I cannot figure out a way to prevent resubmission of HTML POST Form.
For example, in the bank account withdrawal scenario, user inputted an amount and clicked submit button to POST the form. An acknowledgment jsp page is then displayed with the inputted withdrawal amount, current balance, and a timestamp generated in Struts Action. At this point, user clicks the lang button to switch lang and a from resubmission will be triggered. How can I redisplay this acknowledgment jsp page with all dynamic information displayed correctly without duplicating the withdrawal action?
Thanks in advance.
Jerry
-
Struts Multilang Problem (3 messages)
- Posted by: Jerry McMorran
- Posted on: April 13 2006 01:10 EDT
Threaded Messages (3)
- Struts Multilang Problem by Jerry McMorran on April 21 2006 23:42 EDT
- Struts Multilang Problem by Bob Armour on April 24 2006 07:02 EDT
- Struts Multilang Problem by Jerry McMorran on April 25 2006 12:07 EDT
- Struts Multilang Problem by Bob Armour on April 24 2006 07:02 EDT
-
Struts Multilang Problem[ Go to top ]
- Posted by: Jerry McMorran
- Posted on: April 21 2006 23:42 EDT
- in response to Jerry McMorran
Could someone kindly offer me some opinions?
Thanks in advance. -
Struts Multilang Problem[ Go to top ]
- Posted by: Bob Armour
- Posted on: April 24 2006 07:02 EDT
- in response to Jerry McMorran
I would rethink your decision to allow language changes at any point in your application.
If you think about it, why on earth would somebody want to change language half-way through a transaction.
I'd limit the ability to change languages to a few selected (and sensible) places in the application - such as the login page and the main menu.
Secondly, as far as dealing with duplicate submissions is concerned, may I suggest that you check out the technique discussed in this article...
http://www.theserverside.com/articles/article.tss?l=RedirectAfterPost
Good luck -
Struts Multilang Problem[ Go to top ]
- Posted by: Jerry McMorran
- Posted on: April 25 2006 00:07 EDT
- in response to Bob Armour
Thanks Bob.
I will take your opinion to limit the ability to change languages at only some places.