wood burning stoves 2.0*
The moose likes Servlets and the fly likes Reg. init() in servlet 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 "Reg. init() in servlet" Watch "Reg. init() in servlet" New topic

Reg. init() in servlet

nash avin
Ranch Hand

Joined: Nov 13, 2003
Posts: 96
I have a servlet that has a init() method which contains the following code

And I have a class/java program that does the database authentication (in the process of making one).
I plan to put some code in doPost() method that will call the class that does the database authentication,as described above.

My question is,should I put the code in the init() method above also in the java file which will be called by the doPost() method.
Hope that my question is rightly put.Hoping to hear from you all at the earliest.
Thanks in advance
I agree. Here's the link: http://aspose.com/file-tools
subject: Reg. init() in servlet
Similar Threads
JDBC pooling, MVC, and OO newbie...
servlet calling a database access file
Database Connection please help
init(ServletConfig) not being called
jsp with servelet execution in tomcat