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 can't use tags in JavaScript but there is a workaround: Put the tag into an hidden DIV ( Now you can use JS to look up the DIV by its ID and get the innerHTML. That said, fmt is just a wrapper for Java's i18n functions which you can use directly between <% %>. 0 讨论(0) 查看其它7个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
DIV
Now you can use JS to look up the DIV by its ID and get the innerHTML. That said, fmt is just a wrapper for Java's i18n functions which you can use directly between <% %>. 0 讨论(0) 查看其它7个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
Now you can use JS to look up the DIV by its ID and get the innerHTML.
innerHTML
That said, fmt is just a wrapper for Java's i18n functions which you can use directly between <% %>.
<% %>