This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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

Win a copy of Elasticsearch in Action this week in the Big Data forum!
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
I agree. Here's the link:
subject: Returning ResultSet from a bean to a JSP