Hi Sanjay ,
I think init() method in servlet will do the same thing what a constructor
will do .
So what is the need for a constructor in Servlet.

Regd,
Sushil

-----Original Message-----
From: Rohan Sud [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 27, 2000 5:21 PM
To: [EMAIL PROTECTED]
Subject: Re: Constructors in Servlet
Importance: High


Hi Sanjay ,
        Yes u can have constructors in Servlets . They are called before the
init method is called.

Rgds,
Rohan

-----Original Message-----
From: Sanjay Kumar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 27, 2000 5:14 PM
To: [EMAIL PROTECTED]
Subject: Constructors in Servlet


Hello friends,
    Is it possible to have constructors  in Servlets?
    If yes when is it called?

Waiting for your valuable suggestion.

Thanks
Sanjay

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to