This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes JSP question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP question " Watch "JSP question " New topic

JSP question

Subha Rangu

Joined: Jul 23, 2004
Posts: 29
I have a Java class which has an Enumeration object which holds multiple objects.Now I would like to print them all on my jsp.
How do I do that.
Rovas Kram
Ranch Hand

Joined: Aug 08, 2003
Posts: 135
Do you mean to call the toString() method of each object in your Enumeration?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60752

The best-practice mechanism would be to use the JSTL <c:forEach> action.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Subha Rangu

Joined: Jul 23, 2004
Posts: 29
Thanks for the replies
I agree. Here's the link:
subject: JSP question
Similar Threads
How do I page iframe search string to a parent window ?
which is easier????
Is it possible to pass a value from JSP to Javascript
Retrieve a object
add an element to select box