-
Oct 13th, 2006, 10:59 AM
#1
Missing apostropes(') when using arguments attribute of <spring:message> tag
I have this problem with the <spring:message> tag. When I sue the <spring:message> with an 'arguments' attribute, the apostrophes(') of the messages from the properties file dissapear. When I remove the 'arguments' attribute, they reappear, but of course this is no good because obviously arguments have to be passed in. However, I managed to get it to work fine by replacing the apostrophes with it's ASCII value ('
. Below is an example of the problematic code. I was wondering if there was a better way to counter this problem than having to go through all the properties files and change all the ' to '? Thanks.
test.properties
--------------
test=bla bla {0} bla bla's bla
test.jsp
-------
<spring:message code="test" arguments="${argument}" />
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules