struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukasz.len...@googlemail.com>
Subject Re: How to do matematical operation in jsp.
Date Tue, 21 Apr 2009 16:00:53 GMT
2009/4/21 Dave Newton <newton.dave@yahoo.com>:
> 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.

How do you want to test it? I know it's a simple case, but it's better
to have logic in one place.

> 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.

So you answer your question, use additional method with no cost, with
easy way to extend the logic behind in the method.


Regards
-- 
Lukasz
http://www.lenart.org.pl/

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


Mime
View raw message