Maybe not the best approach but I'd add another form bean field as a String called "priceDisplay" Then in the setPrice(float f) method you'd call setPriceDisplay(float f)
setPriceDisplay( float money ) { DecimalFormat df = (DecimalFormat)NumberFormat.getCurrencyInstance(); df.setNegativePrefix("-"); df.setNegativeSuffix(""); priceDisplay = df.format(money); } then of course a getter to return the String priceDisplay which you would use in the bean:write tag. On Tuesday, April 30, 2002, 5:56:24 PM, Mark wrote: GM> I'm using a simple <bean:write name="phone" property="price" /> GM> which grabs a float price from the form bean. The display, GM> however, is unpredictable. For a price of 25.00, e.g., can get GM> returns of "25.00," "25.0" and "25." Anybody else experiencing GM> this behavior? I've had to wrap the <bean:write> with JavaScript GM> to get the formatting correct. GM> Mark GM> "De recta non tolerandum sunt." -- Rick mailto:[EMAIL PROTECTED] "Any man, in the right situation, is capable of murder. But not any man is capable of being a good camper. So, murder and camping are not as similar as you might think." -Jack Handey -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>