I am currently working on a spring project and I had to use fmt tags inside my JSPs. Actually fmt tags work fine for me and read the correct value from the messages.properties file.
eg:
<fmt:message key="General.Settings"/>
in the .properties file:
General.Settings=Settings
he reads it just fine.
Now the problem occurs when setting the fmt tag inside other JSTL tags.
For instance:
<input name="commit" value= <fmt:message key="AllMessages.PostThisMessage"/> type="submit" onclick="return isEmpty();" />
Inside the .properties file:
AllMessages.PostThisMessage=Post this message
but it only displays the word "Message" instead of "Send this message"
and the same with all other fmt tags inside other JSTL tags.
any suggestions?
source share