Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

retrieving an ArrayList object in a JSP page and loop it

843836Feb 21 2005 — edited Feb 22 2005
i have these statements in the java servlet class:
request.setAttribute("searchresults",searchResults);
request.getRequestDispatcher("/searchStaff.jsp").forward(request, response);
return;
the searchResults is the ArrayList object.
i would very much like to know how i can retrieve this object in a JSP page and iterate through this ArrayList using JSTL. I know i will need to use the <c:forEach> tag but i don't know what i should include in the body of this tag.

thanks a lot~~~~~
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 22 2005
Added on Feb 21 2005
2 comments
293 views