May 14, 2012

Struts - Calculating on struts tags

We need to initilaize variable.
<s:set var="total" value="%{0.00}"/>
Calculation
<s:set var="total" value="%{amount + #attr.total}" />

No comments: