[opencms-dev] some exceptions in the dev-doc examples
Stephan Hartmann
hartmann at waehrisch-feykes.de
Thu Mar 7 09:04:09 CET 2002
Hi Manfred,
Am Mittwoch, 6. März 2002 23:49 schrieben Sie:
> Hi everybody,
>
> I'm playing around with the examples in the documentation.
> I met some exceptions.
>
> 1) Chapter 2, module development, method tag, page 79/80
> Example 9:
> ...
> {"spider","eagle","lion","cheetah","scorpion","snake"};
> CmsXmlTemplateFile template = (CmsXmlTemplate)doc;
it should be
CmsXmlTemplateFile template = (CmsXmlTemplateFile)doc;
> "CmsExample25.java": Error #: 300 : class HttpServletRequest not found in
> class com.opencms.template.CmsExample25 at line 32, column 22
>
you need to import some classes of the servlet api:
import javax.servlet.http.*;
>
> Under 'required libraries' I've entered opencms.jar in the web-inf/oclib
> dir.
> Any ideas?
you may use the servlet.jar from tomcat.
Bye,
Stephan
>
> Manfred
>
> ----------------------------------------------
> IFCOS Institut für Zell- und Organsimulation GmbH
> Friedrich-Barnewitz-Strasse 3
> 18119 Rostock
> phone: +49 (0)381.5196-190
> fax: +49 (0)381.5196-137
> email: manfred.pruntsch at ifcos.com
More information about the opencms-dev
mailing list