The following entry works fine, but when "xaction.contractPrice" is
NULL it prints out "null" on my web page.
<s:text name="format.money"><s:param value="#xaction.contractPrice"/></s:text>
This sort of fixes the issue, but I would prefer to not display a "$0".
<s:text name="format.money"><s:param
value="%{#xaction.contractPrice==null ? 0 :
#xaction.contractPrice}"/></s:text>
This does not work as I get an error: "cannot forward object as a number"
<s:text name="format.money"><s:param
value="%{#xaction.contractPrice==null ? ' ' :
#xaction.contractPrice}"/></s:text>
Properties file entry:
format.money = {0,number,\u00A4###,##0}
Is there something simple I am missing or a better way to do this? Is
there a "$!" like freemarker or a "default value" parameter?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]