my dog learned polymorphism*
The moose likes Servlets and the fly likes Returning ResultSet from a bean to a JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Returning ResultSet from a bean to a JSP" Watch "Returning ResultSet from a bean to a JSP" New topic

Returning ResultSet from a bean to a JSP

Trader Joey
Ranch Hand

Joined: May 11, 2000
Posts: 33
What is the best way to return the ResultSet of a query from a bean to the JSP page ? Returning the ResultSet results in an error. please advice

Joined: Jan 10, 2001
Posts: 9
You must pack the contents of the result set into an object and send it to the client. (say Vector or some user defined object)

Frank Carver

Joined: Jan 07, 1999
Posts: 6920
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please choose a new name which meets the requirements.
Please note that I have warned you before about this. Please choose another user name soon, as this one will soon be terminated and you will not be able to post messages using it.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
jQuery in Action, 2nd edition
subject: Returning ResultSet from a bean to a JSP
Similar Threads
Display Data Records in Table
Question for Kyle or WAS Expert : Help with creating EJB ResultSet
passing variable.
JSP, Servlet & JDBC
ResuletSet Object store and retrive in to session