Ben,
Thanks a lot!
that got me on the right way...

but now I am getting this error:

org.apache.jasper.JasperException: In <formatNumber>, value attribute can
not be parsed into java.lang.Number: "${invoice.totalBilling}"

I´ve tried to find out why is this happening, but the property
invoice.totalBilling is correct since
 <bean:write name="invoice" property="totalBilling" /> works fine ( and
getTotalBilling returns a double.... just in case ).

Anyone has any clue about this error?

Thanks a lot
Lucas González



----- Original Message ----- 
From: "Ben Anderson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 05, 2004 12:40 PM
Subject: RE: Formating a float


> are you using jstl?
> <fmt:formatNumber pattern="#,###.00" value="${netTotal}"/>
>
> >From: "Lucas Gonzalez" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: Formating a float
> >Date: Thu, 5 Feb 2004 11:55:18 -0300
> >
> >Hi,
> >I´ve been searching the list for any insight about this issue, but found
no
> >real solutions.
> >
> >I need to format a float that is shown using:
> >
> >     <bean:write name="netTotal" filter="true" format="#,###.00"/>
> >
> >but it does not works.
> >I´ve tried with many formats, but none seems to work. There is anything I
> >am
> >doing wrong?
> >
> >I wonder if anyone could point me some docs or anything that might
help....
> >=)
> >
> >Thanks a lot!
> >Lucas
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> _________________________________________________________________
> Learn how to choose, serve, and enjoy wine at Wine @ MSN.
> http://wine.msn.com/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to