Internationalization messages in HTML tags
Does anyone know how to pull a message out of the messages.properties file and use it as the value in a button?
For example,
messages.properties would look like:
label.search=Search
on the jsp I want:
<input type="button" value="<spring:message code="label.search"/>">
I want the button to say Search, but of course it doesn't, it says what I put in those quotes. Thoughts?
Thanks!
Re: Internationalization messages in HTML tags
Quote:
Originally Posted by Rexxe
<input type="button" value="<spring:message code="label.search"/>">
I want the button to say Search, but of course it doesn't, it says what I put in those quotes. Thoughts?
Thanks!
Try
<input type="button" value='<spring:message code="label.search"/>'>