Hi All,
How can I define counters using Struts EL tag libraries for printing purposes in
JSP pages
Here is an example
<table border="1">
<c:forEach var="transid" items="${trans.transactions}">
<tr>
<td><c:out value="${transid.acctno}"/></td>
<td><c:out value="${transid.testcode}"/></td>
if($transid.testcode=="ts" ) tscount=tscount+1;
<td><c:out value="${transid.srcfac}"/></td>
<td><c:out value="${transid.dateofservice}"/></td>
<td><c:out value="${transid.htkey}"/></td>
</tr>
</c:forEach>
</table>
In the above code i would like to print the total and number of iterations the for
loop performed.
I would also like to do some condition to inside the for loop to print another
specific counter
like
eg:--
if($transid.testcode=="ts" ) tscount=tscount+1;
I am novice and have recently started using these tag libraries.Is there a link or
web site which has tutorials on how to use the tag libraries.
Any help appreciated
thanks
Vinay