I am doing a section of the application
that involves user administration. I
have one action that works correctly that displays all the users that are
registered. That is the only thing this
part does is query the database and display all of the users. I have another action that searches for a
single user via database query and displays the users profile on the page where
it can be edited or changed, that works.
But also I want to have a second query for that page, which displays any
classes the user might be enrolled in. I
have to do 2 result sets for a number of reasons so the solution isn’t
modifying my query. The problem I am having is that the first
query with the user data shows up fine, but when I iterate through the arraylist for the 2nd query, only 1 row is displayed, when
there should be more. Both queries are done in the Action, stored
in an ArrayList and returned to the view using the
request and displayed using the <logic:iterate>
tags. If I got NO results returned, I'd figure
that I was way off, but I am actually getting one row back. This is the part that is killing me is only
being able to display one row (the first result put in the ArrayList). That and the fact that I know I can use this
method correctly since I have one previous action that I can display all of the
users correctly on a view using this same method with an arraylist
and iterate tages. I can provide code snippets if needed. I appreciate the help. I have tried about everything I can think of
this past week and am at wits end! Thanks in advance for the help! Matt Thebert |
- Re: [MVC-Programmers] ArrayLists, Actions and <logic:it... Matthew Thebert
- Re: [MVC-Programmers] ArrayLists, Actions and <log... Vic Cekvencih