If the only thing you need to do is increment a variable, I think your way
is still the best way. But usually people increment counters to access
arrays or lists. In that case, if you have a list, an array, or any
collection of objects you need to access and display in the page,
<logic:iterate> is your friend.

See
http://jakarta.apache.org/struts/struts-logic.html#iterate


----- Original Message -----
From: "Dua, Amit" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 19, 2001 2:15 PM
Subject: incrementing a number


>
>
> how to increment a variable using struts in jsp pages
>
>
> equivalent of
>
> <% for(i=0;i<10;i++){ %>
>
> <tr>
> <td>
> <=%i%>
>
> </td>
> </tr>
>
> <%}
> %>
>

Reply via email to