Let's say you have an alert box that has a message. You want that message
to be internationalized. Let's also assume that you want your JavaScript
source to not be in the jsp/html page, you would rather link to it (i.e.
<script src="[location of JavaScript source file]">).
How do you get the internationalized message to show up in the alert box?
The only two solutions I can think of are these:
Bear in mind, they are only workarounds.
1- pass the message as parameters when calling the function. example:
onClick="alert(<bean:message key="international.message"/>)"
2- simply give up on the second requirement and keep the code in the jsp
page.
Any suggestions?
-Dallas