I have x number of .jsp files, where i present for example:
"Enter your surname:"
"Enter your e-mail".. and so on.
And i wonder if there is any simple way to change language by for example clicking a button.
The krux is that i have to use the same file, so I'm thinking, maybe there is a way to have 2 files with properties, same name of the properties
but the value is on 2 different language, and then when you click the button you simply read the properties from one file or the other?
Is this possible, if so, how do i implement it? :-)
Kumaravadivel Subramani wrote:You may have two different property files to be served based on the language change. The same behavior is being followed in frameworks like struts. It would not be a recommendation to use same file for different language.
I found a solution using propertyfiles.
I guess there must be some kind of way to send a value between pages and when the next page is about to load, checks "what language?".
Bear Bibeault wrote:Right now, it looks like you are getting the language value from the parameters. Rather, once you know it, store and retrieve it from the session
Is that possible to do in a Spring project, the language works perfect between pages, exept for my interceptor. Since that url is set in an xml file.
How can i reach the session to save it?