> From: Chris Warr [mailto:[EMAIL PROTECTED]]
> 
> 
> Bit of a newbie so this may be a dumb question but I'm having trouble
> finding out how to do this from the documentation and samples.  Is it
> possible to do this in the site map:
> 
>    <map:handle-errors>
>     <map:redirect-to
uri="http://anothersite.com/pdfgenerationerror.asp"/>
>     <map:serialize status-code="500"/>

Redirect is (IIRC) status code 302, and on the next line you say 500. So
which one do you want to send??


>    </map:handle-errors>
> 
> I'm using cocoon to generate a PDF, this is navigated to from another
site,
> if there is an error generating the pdf I don't want to display any
specific
> message about the error.  I just want to go back to the originating
site and
> display a generic 'pdf generation error' message.
> 
> I can do so by putting a client side redirect in the html generated by
> error2html, but I'd rather do it on the server.
> 
> Is this possible?

You can generate any page in the handle-error section. There is only one
limitation: generator is already set.

One of the possible ways in your situation could be to write
error2html.xsl which will output cinclude tag, and process it by
cinclude transformer.

Vadim

 
> Chris.


---------------------------------------------------------------------
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