• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

overwrite the init() method in servlet?

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually what is the purpose of overwrite the init() method in servlet.
 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sorry for above comments , by mistake i have posted it for wrong que
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, its overriding
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic