This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

important!

 
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic