For JS, there is only one file, and I can get the language from some class and then display proper prompts after checking the language, because having different JS files, I think will build up the work.
Now I do not know how to call the java method from the JS file, and determine the language. Please help me.
Update: I have specified seperate file name in a JSP thats included with every other JSP, and there I can get the language simply there.
But please explain me this:
Bear wrote: Or better yet, have a JS file for each language that only contains a translation table for the text