[
https://issues.apache.org/jira/browse/WW-3322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lukasz Lenart resolved WW-3322.
-------------------------------
Resolution: Fixed
Problem is in MessageFormat class from JDK, I added additional check for 'null'
in LocalizedTextUtil after formatting it by MessageFormat.format() method
> Option to handle NULL values with <s:text> tag
> ----------------------------------------------
>
> Key: WW-3322
> URL: https://issues.apache.org/jira/browse/WW-3322
> Project: Struts 2
> Issue Type: Improvement
> Reporter: Burton Rhodes
> Assignee: Lukasz Lenart
> Priority: Minor
> Fix For: 2.2.0
>
>
> <s:text> tag currently diaplays "null" if passed a NULL parameter value.
> Would be better to display an empty string (or allow user to specify a
> "default" value as the <property> tag allows). The following code will
> print "null" in the UI if "itemPrice" is null.
> jsp file:
> <s:text name="format.money"><s:param value="#itemPrice"/></s:text>
> package.properties file:
> format.money = {0,number,\u00A4###,##0}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira