Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Servlets and the fly likes Servlet Constructor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

Servlet Constructor

Niranjan Prasad
Ranch Hand

Joined: Aug 13, 2005
Posts: 62
Can we have a constructor for our Servlet?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Duplicate of:
http://www.coderanch.com/t/362781/Servlets/java/Init-Vs-Constructor

Please don't ask the same question more than once.
It wastes people's time.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
Consider Paul's rocket mass heater.
 
subject: Servlet Constructor
 
Similar Threads
can i called the constructor in servlet file?If Yes how can?If no why?
init and constructor in servlet
writing own constructor for servlet
Why dont we write constructors in servlets?
in simple servlet ,why a constructor has super()?.