aspose file tools*
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
Author

JSP question

Subha Rangu
Greenhorn

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.
Thanks
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
Marshal

Joined: Jan 10, 2002
Posts: 61648
    
  67

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
Greenhorn

Joined: Jul 23, 2004
Posts: 29
Thanks for the replies
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP question