I want to use JSTL\'s fmt tag in JavaScript to localize my alert messages. My JavaScript file is a standalone file and when I include fmt tag in js, the file browser gives J
You could do the following. You store the translated message in a variable that can be resolved later on in the JSP.