Hey!
I don't use Oracle but yes.
The question is why would you want to do this? If you use the
Model View Control, you won't have much code in the servlet
anyway to make it worth while to extend the class. In my experiences,
I have not found it to be an advantage. Servlets are not very
object-oriented anyway.
Sans adieu,
Danny Rubis
kiran vattem wrote:
> 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