<html:form action="/User.do?action=add"> <h2>List of users</h2> <table width="40%" border="3" > <tr> <th>UserId</th> <th>Username</th> <th>Password</th> <th>Action</th> <th>Action</th> </tr> <logic:iterate id="elem" name="results" type="za.co.johnboy.vo.UserVO"> <tr> <td align="right"><bean:write name="elem" property="userId"/></td> <td><bean:write name="elem" property="username"/></td> <td align="right"><bean:write name="elem" property="password"/><br></td> <td><a href="User.do?action=update&userId=<bean:write name='elem' property='userId'/>">[Update]</a></td> <td><a href="User.do?action=delete&userId=<bean:write name='elem' property='userId'/>">[Delete]</a></td> </tr> </logic:iterate> <tr> <td colspan="6" align="center"> <html:submit value="Add User"/> </td> </tr> </table> </html:form> Now I need to iterate through a different class in order to get the output on the same page. Please help.
Thank you for attending to my question.And please accept my appology for not using the forum.
The �results� is a collection of data that I am getting out of the database using the ff method from a class called UserDAO. So I have another class which is called RoleDAO which retrieves the roles for the users from the database in the same way as the UserDAO class. I need to put the output of both classes(results and roleResults) on the same jsp page.