aspose file tools*
The moose likes Servlets and the fly likes overwrite the init() method in servlet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "overwrite the init() method in servlet?" Watch "overwrite the init() method in servlet?" New topic
Author

overwrite the init() method in servlet?

Ganesan Ramakrishnan
Ranch Hand

Joined: Mar 18, 2008
Posts: 90
Actually what is the purpose of overwrite the init() method in servlet.
abhijit Ohal
Ranch Hand

Joined: Mar 10, 2006
Posts: 64
Have a look in below urls. these will help you

http://www.roseindia.net/jboss/10_minutes_guide_to_ant.shtml
http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html
http://commons.apache.org/attributes/ant_demo.html
abhijit Ohal
Ranch Hand

Joined: Mar 10, 2006
Posts: 64
sorry for above comments , by mistake i have posted it for wrong que
Rajat Bhatnagar
Greenhorn

Joined: Mar 11, 2008
Posts: 22
It's possible to override and not OVERRWRITE the init() and destroy() methods of a servlet.

You could do it for allocating resources like database Connections.

However it won't be a good idea to write a database connection in a servlet as it could result in performance criteria.


Regards<br />Rajat Bhatnagar<br /><a href="http://guideofgreatness.googlepages.com" target="_blank" rel="nofollow">http://guideofgreatness.googlepages.com</a>
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42913
    
  68
Originally posted by Rajat Bhatnagar:
It's possible to override and not OVERRWRITE the init() and destroy() methods of a servlet.

What do you mean by "overwriting" a method?
Ganesan Ramakrishnan
Ranch Hand

Joined: Mar 18, 2008
Posts: 90
Sorry, its overriding
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: overwrite the init() method in servlet?