【发布时间】:2012-08-27 12:28:58
【问题描述】:
在我的 jsp 中,当我选择一个选项时,我会显示一条消息,这条消息是从属性文件中加载的。例如:
在我拥有的道具中:
msg.01=Message 1
msg.02=Message 2
...
在 Jquery 代码中,我得到了所选选项的值:
$("#optionId').val()
并且使用 Struts bean:message 标签:
alert("<bean:message
bundle='Message'`key='msg."+$("#clientTypeId').val()"+'/>");
显示的警报消息总是:
???en.msg.0x??? (x is 0 or 1 or ...)
请对我的问题有任何想法?
谢谢!
【问题讨论】:
-
请务必使用特定标签标记问题,否则将无法得到适当的关注