[Portfolio] Message bundle calls in jsps w/ parameters
Sobieralski, Damian Michael
dsobiera at indiana.edu
Mon Apr 15 13:14:23 PDT 2013
I'm doing some customization work for our instance of osp and I have a question.
I am trying to use a message bundle value with parameters sent in. The {0} and {1} stuff. This is in a jsp file. I notice that in 2.7 version of osp that the following is used:
<div class="alertMessage">
<fmt:message key="text_AreYouSureRemove">
<fmt:param value="${label}"/>
<fmt:param value="${displayText}"/>
</fmt:message>
</div>
But in 2.9 it is:
<div class="alertMessage">
<c:out value="${msgs.text_AreYouSureRemove}"/>
</div>
It looks like throughout osp there was a move from using <fmt:message to <c:out. After some detective work I *think*that this might have happened during some i18 work in:
https://jira.sakaiproject.org/browse/SAK-14401
and
https://jira.sakaiproject.org/browse/SAK-19184
Does <c:out... support parameters being sent in like <fmt:message had <fmt:param? I need to make some changes in our local code because I need to send in some string parameters. However, since I noticed this <fmt:message to <c:out change I want to make sure that I am calling it correctly. The only way that I know how to do it is with <fmt:message and <fmt:parms. But I am willing to learn if someone has a way to do it with <c:out.
Thank you, in advance, for any guidance that you can send this way.
- Damian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/portfolio/attachments/20130415/0ddb176e/attachment.html
More information about the portfolio
mailing list