wood burning stoves
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 http://www.javaranch.com/name.jsp . 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 frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link: http://aspose.com/file-tools
subject: Returning ResultSet from a bean to a JSP
It's not a secret anymore!