Hello all,
I'm working on a web application which supports multiple languages, which means alert messages to the user should be shown in the user language. This is putting me in a scenario where i cannot separate the JavaScript functions from the
JSP file.
On the server, i had to do something like this when the HTML output is built
And what I tried was to add the translation
string as parameters to the function, but sometimes a function may contains 2 or 3 messages and the parameter list gets too big and it is not very intuitive . Is there a better way to handle this?
Thanks,
Srikkanth