Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 66432 invoked from network); 21 Jul 2004 18:17:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 21 Jul 2004 18:17:05 -0000 Received: (qmail 78710 invoked by uid 500); 21 Jul 2004 18:16:34 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 78637 invoked by uid 500); 21 Jul 2004 18:16:34 -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 Delivered-To: mailing list users@cocoon.apache.org Delivered-To: moderator for users@cocoon.apache.org Received: (qmail 56296 invoked by uid 99); 21 Jul 2004 13:12:32 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Date: Wed, 21 Jul 2004 17:12:22 +0400 From: Yury Mikhienko To: users@cocoon.apache.org Subject: Re: xsp and producing File Not Found Message-Id: <20040721171222.29c63103.Yury.Mikhienko@megafonkavkaz.ru> In-Reply-To: <40D5CE06.2000601@gmx.de> References: <20DADD32-C0FA-11D8-A3CE-000A95C53096@iki.fi> <40D29F91.7030203@jentro.com> <40D5CE06.2000601@gmx.de> Organization: Mobicom-Kavkaz X-Mailer: Sylpheed version 0.9.10 (GTK+ 1.2.10; i586-alt-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Sun, 20 Jun 2004 19:48:54 +0200 Joerg Heinicke wrote: > On 18.06.2004 09:53, John L. Webber wrote: > > > Have you tried "response.setStatus(404);"? > > Don't do it that way, do it the Cocoon way. > > >> with you can catch error, if it happens.. say > >> map:read won't find a file and 404 is returned.. But I don't seem to > >> find, how to throw 404 error from XSP? > > Throw your specific MyException, catch them in map:handle-errors and set > the status to 404 there. There is no need to throw 404 in XSP itself. > > Joerg > Also you can throw ResourceNotFoundException("my message") in xsp -- Best regards, Yury Mikhienko. IT ERP group head, ZAO "Mobikom-Kavkaz" tel: (8632) 704188 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org