aspose file tools*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlet +bean