This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Reg. init() in servlet  RSS feed

 
nash avin
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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
As
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!