Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 68600 invoked from network); 13 Dec 2006 10:07:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Dec 2006 10:07:25 -0000 Received: (qmail 33917 invoked by uid 500); 13 Dec 2006 10:07:28 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 33846 invoked by uid 500); 13 Dec 2006 10:07:28 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 33819 invoked by uid 99); 13 Dec 2006 10:07:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Dec 2006 02:07:28 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [213.133.33.40] (HELO smtp.is.nl) (213.133.33.40) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Dec 2006 02:07:16 -0800 Received: from [213.133.51.241] (HELO hai01.hippo.local) by smtp.is.nl (CommuniGate Pro SMTP 5.0.10) with ESMTP id 6112477 for users@cocoon.apache.org; Wed, 13 Dec 2006 11:06:54 +0100 Received: from [10.10.100.205] ([10.10.100.205]) by hai01.hippo.local with Microsoft SMTPSVC(5.0.2195.6713); Wed, 13 Dec 2006 11:01:41 +0100 Message-ID: <457FCF85.2020209@hippo.nl> Date: Wed, 13 Dec 2006 11:01:41 +0100 From: Jeroen Reijn User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: setting StatusCode References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 13 Dec 2006 10:01:41.0918 (UTC) FILETIME=[B04243E0:01C71E9D] X-Virus-Checked: Checked by ClamAV on apache.org 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, > () > > 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 > Andreas.Busch@ilogics.de > Tel: +49 89 896667-0 > Fax: +49 89 896667-29 > www.ilogics.de > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org