Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

important!  RSS feed

 
Jimi Rock
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I need to know if I need to use JDBC if I have a jsp page that uses beans. if not, this means that beans can handle data base connection?
Thanks,
Jimi.
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In general, if you are using beans in your JSP, then the beans should do all the behind-the-scenes stuff. And this includes database access. So the beans (or whatever creates them) should be coded up to use JDBC, and the JSP just asks the beans for values.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!