Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 24167 invoked from network); 27 Feb 2008 13:42:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Feb 2008 13:42:13 -0000 Received: (qmail 73364 invoked by uid 500); 27 Feb 2008 13:42:08 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 72580 invoked by uid 500); 27 Feb 2008 13:42:06 -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 72569 invoked by uid 99); 27 Feb 2008 13:42:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Feb 2008 05:42:06 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [130.231.240.1] (HELO oulu.fi) (130.231.240.1) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Feb 2008 13:41:29 +0000 Received: from cc.oulu.fi (sun3.oulu.fi [130.231.240.13]) by oulu.fi (8.13.7/8.13.7) with ESMTP id m1RDfbsn022448 for ; Wed, 27 Feb 2008 15:41:37 +0200 (EET) Received: from claudius.oulu.fi (claudius.oulu.fi [130.231.106.107]) by cc.oulu.fi (8.13.7/8.13.7) with ESMTP id m1RDfbu6027900 for ; Wed, 27 Feb 2008 15:41:37 +0200 (EET) Message-ID: <47C5689B.2040406@oulu.fi> Date: Wed, 27 Feb 2008 15:41:47 +0200 From: Andre Juffer Reply-To: Andre.Juffer@oulu.fi Organization: The University of Oulu User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20080201 SeaMonkey/1.1.8 MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: jetty References: <47C29EBF.3040109@cc.oulu.fi> <47C3B7F7.7040603@apache.org> <47C3D60A.5080208@oulu.fi> <47C55EC0.5020003@gmx.de> <47C56278.7070409@oulu.fi> <47C564E6.2010706@gmx.de> In-Reply-To: <47C564E6.2010706@gmx.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Joerg Heinicke wrote: > On 27.02.2008 08:15, Andre Juffer wrote: > >>> Is it only me wondering how this can work at all when there is an >>> exception? In that case finished is NEVER set to true and you always >>> get into an infinite loop. How can this work with Tomcat? Or am I >>> just missing something? >> >> If there is an exception, it should be caught by the catch (ex) >> portion, which extracts the message and puts it in the message form. >> finished remains false (you are entirely right) and the form is being >> displayed again to the user as I intended. > > If it can display the form ... otherwise you get into the try block > again, it throws again an exception, catches and handles it, back to try > block ... and so on. That's what I had in mind. Ah, I see. Yeah, that could indeed be an issue. I have to mention that I have used this code in many occasions, and it never seem to have caused an issue, as I usually check first whether or not the entered data is valid (I rely on dojo for this purpose). > > Joerg > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > -- Andre H. Juffer | Phone: +358-8-553 1161 The Biocenter and | Fax: +358-8-553-1141 the Dep. of Biochemistry | Email: Andre.Juffer@oulu.fi University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/ NordProt | WWW: www.nordprot.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org