Hello, 1,convert the munber into string in the jsp/view page. 2,write a JSTL to render that dataType by your self.
Regards, Mead On Tue, Dec 7, 2010 at 10:25 AM, Yanto Bong <yantob...@gmail.com> wrote: > Hi Li, > > thanks...unfortunately we already use this model in many places and we need > to have BigDecimal return datetype. > However we already solve this issue by changing our java script lib. > > Thanks > > On Mon, Dec 6, 2010 at 11:47 AM, Li Ying <liying.cn.2...@gmail.com> wrote: > > > This looks like the result of toString() of BigDecimal. > > > > May be you can try this: > > > > > > > http://download.oracle.com/javase/1.5.0/docs/api/java/math/BigDecimal.html#toPlainString%28%29 > > > > > > > > 2010/12/6 Yanto Bong <yantob...@gmail.com>: > > > Hi All, > > > > > > We've using BigDecimal as datatype in hibernate and model for Numeric > > (20,8) > > > datatype in database. > > > however when we display it in JSP using struts 2, if the value <> 0 > then > > it > > > will display correctly. > > > However if the value is 0.00000000 in database, then it will display in > > JSP > > > it will shown as *0E-8.00000000* > > > > > > anyone have this issue before ? > > > > > > Thanks & Regards > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > >