File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes important! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "important!" Watch "important!" New topic
Author

important!

Jimi Rock
Ranch Hand

Joined: Feb 19, 2001
Posts: 134
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

Joined: Jan 07, 1999
Posts: 6920
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.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
jQuery in Action, 2nd edition
 
subject: important!
 
Similar Threads
session bean container
Most Dangerous Food
can I ommit the ServiceLocator from the component diagram?
getting-> 500 Internal Server Error
JavaBean Problem