• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Returning ResultSet from a bean to a JSP

 
Trader Joey
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
rgopi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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)
Bye
Gopinath
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"rgopi",
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.
Thanks.
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic