cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicola Ken Barozzi" <>
Subject Re: Cocoon Error messages
Date Tue, 07 Nov 2000 17:10:01 GMT
From: "Tien Duc Nguyen" <>

> Hello,
>          I have created a
> <error-page><error>404</error><location>404.html</location></error-page>
> web.xml
> of cocoon and it works..., except for url-patterned files. For example, if
> url-pattern *.xml file and then access
> a non-existant *.xml, cocoon display a dynamic page with Java errors:
> SAXException, SAXParseException.
> My question is this: how can I tell cocoon to display a custom page when
> these events occur? I think I have to code
> a servlet that handle these exceptions, I'm not sure... Any pointers would
> help. Thanks

C2 supports error page definition and das a fixed error DTD.
For C1, think of using maybe the JSP error page definition in web.xml
or write a wrapper somewhere... don't waste too much time though,
because in C2 it's there already.



View raw message