This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes writing own constructor for servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "writing own constructor for servlet" Watch "writing own constructor for servlet" New topic

writing own constructor for servlet

thilakk kumar

Joined: Feb 20, 2008
Posts: 6
Can we write our own constructor for a servlet
Mateus Brum

Joined: Nov 28, 2007
Posts: 18
You can use public void init(){} to override de Servlet constructor.
[ February 20, 2008: Message edited by: Mateus Brum ]

Mateus Henrique Brum
Sun Certified Java Programmer 6
Sun Certified Web Component Developer 5
Java Developer - SP - Brazil
Christophe Verré

Joined: Nov 24, 2005
Posts: 14687

Please refer to this FAQ.

[My Blog]
All roads lead to JavaRanch
Consider Paul's rocket mass heater.
subject: writing own constructor for servlet
Similar Threads
can i called the constructor in servlet file?If Yes how can?If no why?
Constructor of Servlet
Constructor in Servlet
Question for SCWCD.
Servlet Constructors.