You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jordi Valldaura i Riqué <jo...@salleURL.edu> on 2002/12/02 16:11:44 UTC
Handling servlet exceptions in sitemap
Hello,
I'm trying to call a servlet from my sitemap, but I'm not able to handle
the servlet's exceptions through <handle-errors>. Is there anyway to do it.
<map:pipeline>
<map:match pattern="greet">
<map:redirect-to url="greeting" type="servlet"/>
</map:match>
<map:match pattern="*.*">
<map:generate src="{1}.{2}" type="serverpages"/>
<map:transform src="stylesheets/page2html.xsl" />
<map:serialize/>
</map:match>
<map:handle-errors>
<map:transform src="stylesheets/error2html.xsl"/>
<map:serialize status-code="500"/>
</map:handle-errors>
</map:pipeline>
Thanks in advance
---------------------------------------------------------------------
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>