Re: .ChartRequest is an abstract class. It can't be instantiated.

From: Gianni (pincopallo_it_at_yahoo.it)
Date: 01/28/04


Date: 28 Jan 2004 06:44:30 -0800

I implemented all the methods of HttpServletRequest as that class is
an interface but still have this problem . Do I have to implement all
the methotd of HttpServletRequest's superclass ?? Thanks

I compile-web:
    [javac] Compiling 27 source files to C:\siasprod\sias-web
    [javac] C:\siasprod\src\sias-web\ChartRequest.java:18: class
javachart.util
ty.ChartRequest must be declared abstract. It does not define
javax.servlet.htt
.HttpSession getSession() from interface
javax.servlet.http.HttpServletRequest.
    [javac] public class ChartRequest



Relevant Pages

  • Re: non-static method error -- servlet..
    ... I'm trying to use getMimeType() method, ... ServletContext; ... ServletContext is an interface, which means you can't create an object ... how come we can use Interface HttpServletRequest ...
    (comp.lang.java.help)
  • Re: non-static method error -- servlet..
    ... ServletContext; ... ServletContext is an interface, which means you can't create an object ... how come we can use Interface HttpServletRequest ... The class of which "request" is an instance has implemented it. ...
    (comp.lang.java.help)
  • Re: .ChartRequest is an abstract class. It cant be instantiated.
    ... > an interface but still have this problem. ... First of all, an interface is not a class, nor does it have a superclass. ... has a superinterface if anything. ... so there's no reason to implement HttpServletRequest. ...
    (comp.lang.java)