File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 63548

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

[Asking smart questions] [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
It's not a secret anymore!