Add something like this to your WEB-INF/web.xml:
<error-page>
    <error-code>404</error-code>
    <location>/404.html</location>
</error-page>

See Servlet 2.3 specification, point 9.9.2

Hope this helps.

--
Konstantin

----- Original Message -----
From: "Michael Zehrer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 11:35 AM
Subject: RE: Error Handling


And what about errors outside of <map:pipeline/>?

-----Ursprüngliche Nachricht-----
Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 14. Mai 2002 16:26
An: [EMAIL PROTECTED]
Betreff: RE: Error Handling


> From: Michael Zehrer [mailto:[EMAIL PROTECTED]]
>
> Hi List,
>
> how can one have a global static error-page in C2, I need this for a
> production system.

Put in every <map:pipeline/>:

    <map:handle-errors>
      <map:transform src="stylesheets/error2static-html-page.xsl"/>
      <map:serialize status-code="500"/>
    </map:handle-errors>
  </map:pipeline>

And develop error2static-html-page.xsl.


Vadim


>
> Cheers, Michael
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to