Hello, i have a similar problem. I use a session object for display information in ArrayList. Each element in ArrayList is a class like:
private String nombre;
private int tiempofila;
I need divide one number between "tiempofila" but i only can show this value. I can recover and show this value in 3 ways:
<logic
resent name="tabladatos">
<logic:iterate id="inf2" name="tabladatos">
<bean
efine id="por2" name="inf2" property="tiempofila"/>
<bean:write name="por2"/>%<br/>
<jsp:getProperty name="inf2" property="tiempofila"/>%<br/>
<bean:write name="inf2" property="tiempofila"/>%<br/>
---<br/>
</logic:iterate>
......
This code work fine but i don�t need show this value, i need work with it:
<%int value = <bean:write name="inf2" property="tiempofila"/> %>
My goal is calculate one percentaje:
<%int percentaje = 33 * 100 / value %>
�Is possible assign this?