To further the qury, I am looking for the implementation of these
methods. Where can I find them??
An example is "req.getSession();". The method body of getSession() is
what I am looking for.
Hope somebody can lead me to these method implementation...
Another query, Does the src folder have all the source code that is
there is the JSDK.JAR??
Thanks,
Rajat
>From [EMAIL PROTECTED] Fri Mar 5 12:37:39 1999
>Received: from mail (mail.java.sun.com [204.160.241.28])
> by mail.java.sun.com (8.9.0.Beta6+Sun/8.9.0) with ESMTP id MAA15023;
> Fri, 5 Mar 1999 12:27:17 -0800 (PST)
>Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release
1.8d) with
> spool id 619963 for [EMAIL PROTECTED]; Fri, 5 Mar
1999
> 12:26:51 -0800
>Received: from chmls05.mediaone.net (ne.mediaone.net [24.128.1.70]) by
> mail.java.sun.com (8.9.0.Beta6+Sun/8.9.0) with ESMTP id
MAA14284 for
> <[EMAIL PROTECTED]>; Fri, 5 Mar 1999 12:23:03
-0800 (PST)
>Received: from wingate (dchamberlin.ne.mediaone.net [24.128.142.11]) by
> chmls05.mediaone.net (8.8.7/8.8.7) with SMTP id PAA24241 for
> <[EMAIL PROTECTED]>; Fri, 5 Mar 1999 15:27:48
-0500 (EST)
>X-Sender: [EMAIL PROTECTED]
>X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1
>Mime-Version: 1.0
>Content-Type: text/plain; charset="us-ascii"
>Message-ID: <>
>Date: Fri, 5 Mar 1999 15:23:54 -0500
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology." <[EMAIL PROTECTED]>
>Sender: "A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology." <[EMAIL PROTECTED]>
>From: Doug Chamberlin <[EMAIL PROTECTED]>
>Subject: Re: Can interfaces be instantiated??
>To: [EMAIL PROTECTED]
>In-Reply-To: <[EMAIL PROTECTED]>
>
>>> Kenia Nimesh wrote:
>>>
>>> in the function
>>>
>>> public void doPost(HttpServletRequest req,HttpServletResponse res)
>>> throws { }
>>>
>>> Interfaces can't be instantiated.
>>> HttpServletRequest and HttpServletResponse are both interfaces
....Right!
>>> So how can we pass an object of these interfaces to the doPost
method??
>>>
>>> Also that HttpServletRequest extends ServletRequest . Since both of
these
>>are interfaces they have abstract methods which are just declared ..So
where
>>are all the
>>> methods like getParameter(), getMethod() defined???
>
>The objects being referenced by the parameters req and res are
>instantiations of SOME CLASS which supports the interfaces being
designated
>here. As the recipient of those object references you don't really care
>what the base class of those parameter objects is. What you care about,
and
>what is specified in the parameter declaration, is that those objects
>faithfully implement the interfaces shown.
>
>No interfaces cannot be instantiated directly, but you can declare any
>class to implement an interface which means it MUST provide a non
abstract
>replacement for all abstract methods declared in that interface.
>
>___________________________________________________________________________
>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
>
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
___________________________________________________________________________
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