Check bug #14590 for some explanations on this. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14590
From a comment on that bug report: This is not a bug in JSTL, but a peculiarity of how a single quote is interpreted by java.text.MessageFormat.
For more details, you may want to check bug reports 4293229 and 4321513 in the java bug database (http://developer.java.sun.com/developer/bugParade).
The simple rule is as follows:
If there is a {0} placeholder in a message string,
single quotes have to be doubled.-- Pierre
Gary Roberts wrote:
I have a problem with a parameter not getting subtituted, using JSTL/fmt-rt. Here is the jstl:
<fmt-rt:message key="thankYou.yourDownloadShouldBeginText" > <fmt-rt:param><a href="javascript:location.reload()"></fmt-rt:param> <fmt-rt:param value="</a>" /> </fmt-rt:message>
This is what the resulting string in the rendered page looks like:
Your download should begin momentarily. If the download doesn't start, {0} click here {1}.
The begin and end anchor tags are not sub'd in.
Here is the key/string from the bundle:
thankYou.yourDownloadShouldBeginText=Your download should begin momentarily.
If the download doesn't start, {0} click here {1}.
If you remove the single quote the replacement works fine. It seems that single quotes break parameter substitution. I have several strings that use single quotes without parameter substitution and they work.
Any suggestions?
Thanks
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
