[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

Re: java.lang.ClassCastException


On Tue, 19 Oct 1999, Jason pratt wrote:

> > I've got the same problem this morning. The solution is that you can
> > extend (<%@ page extends="fr.escape.db.HttpJspPageDBEnabled" %>)  you
> > JSP page from only the "org.gjt.jsp.HttpJspPageImpl" class (or
> > sub-class) or from a class that implement the interface
> > "org.gjt.jsp.HttpJspPage".
> 
> Thanks fred, i'll try this. 
> 
> (open question:) Is this a new part of the spec, or a bug?

That should be "javax.servlet.jsp.HttpJspPage".

This is part of the spec, but I think we could still observe the spec and
not require a class to extend anything but HttpServlet.  The "implements
HttpJspPage", which is required by the spec, could be dynamically
generated.  You might try this on the reference implementation and see if
it's allowed.

Wes