File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
format problem in bean:write
Joined: Jan 04, 2007
May 18, 2007 18:27:00
<bean:write name="employee" property="salary" format="$#,000.000" />
my salary is of type
and thus it does not work. Is there a away I can convert it into Double inside the beean:write tag. or should I go about using scriptlets
Joined: Aug 02, 2006
May 23, 2007 12:07:00
I don't know if this helps, but it seems to me it would be easier to make the "salary" Form Bean property/instance-variable a numeric type from the outset.
I agree. Here's the link:
subject: format problem in bean:write
format attribute in bean:write
<bean:write/> of struts1
Decimal Format with DynaFormBean
bean:write format string as number
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015