Greetings there, I happen to use display tag for the first time and need to use it for pagenation. I wrote the following jsp: <CODE> <display:table name="results">
<display:column property="date" title="2" /> <display:column property="adminUserName" title="3" /> <display:column property="type_Of_Activity" title="4" /> <display:column property="status" title="5" /> </display:table>
<logic:iterate id="rows" name="adminActivityQueryForm" property="results"> <tr valign="top"> <td><p class="normal"><bean:write name="rows" property="TXN_ID" /></p></td> <td><p class="normal"><bean:write name="rows" property="date" /></p></td> <td><p class="normal"><bean:write name="rows" property="adminUserName" /></p></td> <td><p class="normal"><bean:write name="rows" property="type_Of_Activity" /></p></td> <td><p class="normal"><bean:write name="rows" property="status" /></p></td> </tr> </logic:iterate>
</CODE> So, surprisingly, the <display:table> displays: "Nothing found to display. " and the <logic:iterate> displays the table.
Behind the scene: The results field is an arraylist type defined in a dynaactionform. The arraylist is made up of DO's with the given properties.
So why is it that the display tag is unable to read the arraylist? Kindly help.
Thanks, rohit.
Log in to post a comment.
Greetings there,
I happen to use display tag for the first time and need to use it for pagenation.
I wrote the following jsp:
<CODE>
<display:table name="results">
<display:column property="date" title="2" />
<display:column property="adminUserName" title="3" />
<display:column property="type_Of_Activity" title="4" />
<display:column property="status" title="5" />
</display:table>
</CODE>
So, surprisingly,
the <display:table> displays: "Nothing found to display. "
and the <logic:iterate> displays the table.
Behind the scene:
The results field is an arraylist type defined in a dynaactionform.
The arraylist is made up of DO's with the given properties.
So why is it that the display tag is unable to read the arraylist?
Kindly help.
Thanks,
rohit.