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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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:     <[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/faq/index.html>

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

Reply via email to