cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Guillard <pguill...@citycita.net>
Subject Error handling / external resource
Date Fri, 22 Apr 2005 08:59:43 GMT
Hi,

Is it possible to handle error when an external resource is not available?
This is what i tried for now without success:

<map:match pattern="foo">
    <map:act type="resource-exists">
        <map:parameter name="url" value="http://www.foo.org"/>
         <map:generate type="html" src="http://www.foo.org">
        <map:serialize type="xhtml"/> 
    </map:act>
    <map:generate src="notavailable.xml"/>
    <map:serialize type="xml"/> 
</map:match>
.....
   <map:handle-errors>
    <map:transform src="common/style/xsl/html/error2html.xsl"/>
    <map:serialize type="html" status-code="500"/>
   </map:handle-errors>   

Regards,

Phil



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message