We are writing a new Struts (1.1) based web application. One of the JSP's we are writing requires us to display a table of business check information. A code snippet follows:
<td colspan="2" valign="top" nowrap>
<jsp:getProperty name="check" property="checkNumber" />
<jsp:getProperty name="check" property="checkDate" />
<jsp:getProperty name="check" property="checkVoidDate" />
<logic:equal property="(counter.intValue()%3)" value="0">
The problem I am having is with the logic:equal statement. What I am trying to do is use the collection index (counter), perform a reminder operation on it, and after I have written 3 columns start a new table row. The problem is I cannot seem to get the logic:equal statement formatted correctly. I keep getting different JSP compile errors. What is the correct way to write this? Do I use property=, or name=, etc. Or do I have to do something else entirely?
Thanks in advance!
Java JDK v1.3.1_11
On Windows XP Professional