• Post Reply Bookmark Topic Watch Topic
  • New Topic

Returning Resultset from Bean to JSP  RSS feed

 
subburam
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any disadvantage of returing Resultset from a JavaBean to JSP?
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From my point of view,
Its not good idea,do all the database stuff in at serverside using javabaen and pack the result as a Vector or Hash etc. and return to JSP, then use iteration or enumeration in ur JSP to display it.
Regards
Balaji
Originally posted by subburam:
Is there any disadvantage of returing Resultset from a JavaBean to JSP?
 
Anil Sadi
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is It passible to use servlets insted of java beand for database logic. If it so, How can I get the object servlet to JSP.
Thanks to all
Anil S
 
Sean MacLean
author
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"subburam"
Thank you for your participation here at the Ranch. However, your name doesn't follow the JavaRanch guidelines. Please take a moment and change your "Publicly Displayed Name" by modifying your profile after reviewing the guidelines at http://www.javaranch.com/name.jsp
Thanks.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!