"P.Yesudason" wrote:
>
> What is happening man.....
>
> I am sure there is no concept of constructors in Servlet ..It is given in books.
>
> If yes Try to give the details ...seems to be intresting
>
> Yesudas
>
> sushilkumar wrote:
Since HttpServlet is a descendant of GenericServlet, which of course is
a descendant of java.lang.Object and since we know all descendants of
Object have a generic constructor, HttpServlet has a constructor too.
Some Code: (GenericServlet.java)
<clip clip>
public abstract class GenericServlet
    implements Servlet, ServletConfig, java.io.Serializable {

    private transient ServletConfig config;

    /**
     * The default constructor does no work.
     */
    public GenericServlet () { }
<clip clip>
The same code can be found in HttpServlet.java

sven

--
-------------------------------------------------------------------------------------------
Sven E. van 't Veer                                                Afiliado
Universo Online
Gerente Desenvolvimento
Brasil Informática e Telecomunicações Ltda.
http://www.brvip.com.br
http://www.uol.com.br
-------------------------------------------------------------------------------------------

___________________________________________________________________________
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