Sub classing servlets works exactley the same way as subclassing any other kind
of java class.

-ernie


Ron Sigler wrote:

> Does your version of Oracle permit inheritance?
>
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of kiran
> vattem
> Sent: Tuesday, February 08, 2000 3:41 PM
> To: [EMAIL PROTECTED]
> Subject: Question on Servlet Subclassing
>
> Hello Gurus,
> sorry about the previous email, I sent it inadvertently...
>
> I have a question on servlet subclassing
>
> If I have Servlet1 that extends HttpServlet
> Can I have a Servlet2 that extends Servlet1
>
> for example
>
> public class servlet2 extends Servlet1 {
>
> ....
>
> ...
> }
>
> Is it a correct way of re using code?
> I tried using this in Oracle's Jdeveloper,it would not work
> Got compilation errors..
>
> Thanks
> kiran
> ______________________________________________________
> 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
>
> ___________________________________________________________________________
> 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
begin:vcard
n:Varitimos;Ernie
tel;cell:781-929-3856
tel;home:781-784-1997
tel;work:781-784-3900
x-mozilla-html:TRUE
url:http://www.skyserver.com
org:Skyserver Consulting, Inc.
adr:;;144 Upland Rd;Sharon;MA;02067;
version:2.1
email;internet:[EMAIL PROTECTED]
title:President
fn:Ernie Varitimos
end:vcard

Reply via email to