This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes servlet +bean 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 "servlet +bean" Watch "servlet +bean" New topic
Author

servlet +bean

sri jaisi
Greenhorn

Joined: Sep 02, 2006
Posts: 23
hi

iam having a student table;iam using jsp to present the table and want to use servlet to process and a bean(getter and setter )methods to retrieve
and store data into student table.can anyone please tell me how to access bean in servlet;will it work just by creating a reference for a bean class
in servlet ;do i have to load the java driver in all the servlets inorder to access the database;

thankz
Chetan Raju
Ranch Hand

Joined: Aug 02, 2006
Posts: 109
Yes. you can create a object of the java Bean in Servlet.
Chetan Raju
Ranch Hand

Joined: Aug 02, 2006
Posts: 109
do i have to load the java driver in all the servlets inorder to access the database;


Probably you can use a self made utility class to load driver and get connection.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Not an advanced question. Moving to the Servlets forum...


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: servlet +bean
 
Similar Threads
Method Access Permission
How to call a JPA-Facade from a JSP
Design problem with Session
Doubt in ejb instance
How many instance of ejb created for a table