Hi Andreas,
you can do this with the help of some sitemap error handling.
You can do exactly that by catching your exception and then throw the
status code.
See http://cocoon.apache.org/2.1/userdocs/concepts/errorhandling.html
for more information.
Be sure to also check out the error handling core samples of the Cocoon
distribution.
Kind regards,
Jeroen Reijn
Andreas Busch wrote:
Hi ,
im thinking about the following requirements
I get a XML-Dokument postet in, transform it and use the SQL Transformer.
If there will be anny error I have to return a Servercode like 404 or 304
I can set the servercode in the serializer,
(<map:serialize type="xml" status-code="304" />)
but how to make it variable ? can I evaluate th saxstream to set a
variable or are there a inputmodule
any hints are welcome
Thanks in advance !
*Andreas Busch*
ILOGICS GmbH ∙ Berduxstr. 22 ∙ D-81245 München
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Tel: +49 89 896667-0
Fax: +49 89 896667-29
www.ilogics.de <http://www.ilogics.de/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]