File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 14688

Please refer to this FAQ.

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link:
subject: writing own constructor for servlet
It's not a secret anymore!