struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: How to do matematical operation in jsp.
Date Tue, 21 Apr 2009 15:57:20 GMT
Lukasz Lenart wrote:
> 2009/4/21 Stefano Tranquillini <stefano.tranquillini@gmail.com>:
>> how can i do that?
> 
> Add method to class Item to do that, jsp isn't place for business logic

Meh--for simple stuff like this I'm not as sure, although if we're 
talking about a line item in a invoice, it wouldn't take much to 
convince me.

The issue for me would be that if this is money maths it should be using 
BigDecimal (or something), and I'm not sure what OGNL would do with the 
'*' operator.

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message