You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by an...@idl-bt.com on 2002/04/15 15:42:22 UTC
Error handling with nested Velocity components
Hi
Does anyone know how to force a new page on the browser when dealing with
errors that come from a nested Velocity component? I'm finding that with my
current pipeline:
<map:handle-errors>
<map:transform type="xslt" src="error/tidyerror.htm"/>
<map:serialize type="html" status-code="500"/>
</map:handle-errors>
causes the error to appear within the page, in the same way that the
Velocity component would have done. What I need is for the error page to be
a complete page, replacing any components that may already have been
displayed when processing that request.
thanks
Andy
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Error handling with nested Velocity components
Posted by Nicola Ken Barozzi <ni...@apache.org>.
From: <an...@idl-bt.com>
> Hi
>
> Does anyone know how to force a new page on the browser when dealing with
> errors that come from a nested Velocity component? I'm finding that with
my
> current pipeline:
>
> <map:handle-errors>
> <map:transform type="xslt" src="error/tidyerror.htm"/>
> <map:serialize type="html" status-code="500"/>
> </map:handle-errors>
>
> causes the error to appear within the page, in the same way that the
> Velocity component would have done. What I need is for the error page to
be
> a complete page, replacing any components that may already have been
> displayed when processing that request.
This is not a Velocity problem, nor a Cocoon problem but a Worksforme.
Since the page results are sent to the client as soon as they are ready,
when an error occurs the browser has already gotten parts of the page, and
the error system can only append information.
You can increase the buffer size, but of course you will have a higher
memory need and higher latency (ie < percieved performance).
Or send as an error a javascript that redirects to an error page.
--
Nicola Ken Barozzi nicolaken@apache.org
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>