RE: How to format the decimal

2007-06-10 Thread Deepak Kumar
Hi visit http://www.roseindia.net/struts/struts2/struts-2-format.shtml this is good example. thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Josh Vickery Sent: Saturday, June 09, 2007 6:36 PM To: Struts Users Mailing List Subject: Re: How to format

Re: How to format the decimal

2007-06-09 Thread Josh Vickery
Or, you can use the s:text tag (assuming you are using struts 2) and: where format.decimal is defined in a resource bundle somewhere (see http://cwiki.apache.org/confluence/display/WW/Localization for details) as: format.decimal={0,number,###.##} The text tag reference (http://cwiki.apache

Re: How to format the decimal

2007-06-09 Thread Antonio Petrelli
2007/6/9, Shuai Zheng <[EMAIL PROTECTED]>: Dear All, I want to keep all the numeric in my system with 2 decimal places only. What is the best way to do it? Use fmt:formatNumber contained in JSTL: http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/fmt/formatNumber.html HTH Antonio ---