JSTL:fmt:formatNumber:getting pattern from properties file.
843840Jul 31 2008 — edited Jul 31 2008Hi,
I am using following tag to format the number.It's woking fine.
<fmt:formatNumber var = "price" value="${item.price}" pattern="#000.#"/>
But when I use
<fmt:formatNumber var = "price" value="${item.price}" pattern="<fmt:message key="format.price" />"/>
In my MessageResources.properties file I have property.
format.price=000.############
{color:#ff0000}+I am getting exception+
org.apache.jasper.JasperException:equal symbol expected{color}
Hence problem is I have to set pattern from my Properties file.Am I doing any mistake ?
Let me know if there is any workaround other than hardcoding pattern in JSP.
Wating for reply...