Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSTL:fmt:formatNumber:getting pattern from properties file.

843840Jul 31 2008 — edited Jul 31 2008
Hi,
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...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 28 2008
Added on Jul 31 2008
7 comments
383 views