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!

Question on Issue with fmt:formatNumber tag of jstl

843840Oct 31 2007 — edited Oct 31 2007
Hi,
We have a web application that uses struts framework. In the action class,i am setting an attribute of request object like

request.setAttribute("Val",new Double(11.25489));

I am using jstl fmt:formatNumber function in the jsp page to format the value to 2 decimal places.
<fmt:formatNumber value="${Val}" maxFractionDigits ="2" />

When i access the jsp page,there is no display of anything.
If i access using <c:out value="${Val}"/> ,it does print the value.

Interestingly,tomcat does not generate any corresponding java file in its work area.

Any clues...anybody ?

Edited by: gbhakta on Oct 31, 2007 12:23 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 28 2007
Added on Oct 31 2007
1 comment
332 views