You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Robert Sösemann <ro...@gmx.de> on 2003/01/02 18:05:46 UTC

generic error-page

Hy,

for my cocoon site I would like to have an unified error handling. This
means I want to have a generic error page (with the possibility to contact
the admin, same look and feel like the rest of the site). This site would be
called everytime my site generates an error inside esql tags.

...
                </esql:row-results>
                </esql:results>
                <esql:no-results> HERE </esql:no-results>
                <esql:error-results> HERE </esql:error-results>
            </esql:execute-query>
....

If possible I would like to send some off the error data (eg. stack trace)
to my error page as a parameter.

Have you done something similarly and can help me?

Robert


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

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: generic error-page

Posted by Robert Sösemann <ro...@gmx.de>.
It would help if I could send parameters from the xsp to my
"generic_error"-page.

Error producing XSP:
---------------------
....
<esql:no-results>
    *can I add error reason to redirect ???*
   <xsp-response:send-redirect url="/generic_error"/>
  </esql:no-results>
  <esql:error-results>
       <xsp-response:send-redirect url="/generic_error"/>
   </esql:error-results>
....

Sitemap:
--------
....
     <map:handle-errors>
  <map:redirect-to uri="generic-error"/>
     </map:handle-errors>

     <map:match pattern="generic-error">
        ??? generator should built xml from error data here ???
      <map:transform src="transform/style-errorpage.xsl"/>
  <map:serialize status-code="500"/>
     </map:match>
....

----- Original Message -----
From: "Robert Sösemann" <ro...@gmx.de>
To: <co...@xml.apache.org>
Sent: Thursday, January 02, 2003 6:05 PM
Subject: generic error-page


> Hy,
>
> for my cocoon site I would like to have an unified error handling. This
> means I want to have a generic error page (with the possibility to contact
> the admin, same look and feel like the rest of the site). This site would
be
> called everytime my site generates an error inside esql tags.
>
> ...
>                 </esql:row-results>
>                 </esql:results>
>                 <esql:no-results> HERE </esql:no-results>
>                 <esql:error-results> HERE </esql:error-results>
>             </esql:execute-query>
> ....
>
> If possible I would like to send some off the error data (eg. stack trace)
> to my error page as a parameter.
>
> Have you done something similarly and can help me?
>
> Robert
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
>


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

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>