Hi Wong,

I looked into that stuff on jsdwk 1.0 when implementing
extends in gnujsp. IMHO it is not possible to use extends
on jswdk 1.0 without imitating HttpJspPage.
You have to add the utility methods they put into HttpJspPage.
As you noted it is not possible to subclass it because of finals
and according to the spec that shouldn't be necessary either.
GNUJSP solves that by using a utility class to put utility methods
in. So it's possible to use extends in GNUJSP.


>>Try this SampleExtends.java.  I used it with the public Draft 1.0 spec on sun
s
>>reference implementation and JRun's latest release and it worked fine.
>
>Has anyone gotten the extends attribute to work with jswdk1.0?  I tried
>extending Will's SampleExtends.java in my jsp, but there was problem
>finding getClassLoader() during jsp compilation.  I then changed the
>superclass (SampleExtends) to extend jswdk's HttpJspBase in place of
>HttpServlet, but that causes problems with trying to overwrite
>HttpJspBase's final methods.
>
>Any suggestions out there?
>
>-Mary
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST"
.
>FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html

Ciao,
        Carsten Heyl

  Carsten Heyl                          [EMAIL PROTECTED]
  NADS - Solutions on Nets              http://www.nads.de/
  NADS GmbH                             http://www.pixelboxx.de/
  Hildebrandtstr. 4E                    Tel.: +49 211 933 02-90
D-40215 Duesseldorf                     Fax.: +49 211 933 02-93

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to