Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 24513 invoked from network); 15 Dec 2003 09:06:52 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 15 Dec 2003 09:06:52 -0000 Received: (qmail 48007 invoked by uid 500); 15 Dec 2003 09:06:19 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 47985 invoked by uid 500); 15 Dec 2003 09:06:19 -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 Received: (qmail 47968 invoked from network); 15 Dec 2003 09:06:19 -0000 Received: from unknown (HELO paris.dvs1.informatik.tu-darmstadt.de) (130.83.27.43) by daedalus.apache.org with SMTP; 15 Dec 2003 09:06:19 -0000 Received: from informatik.tu-darmstadt.de (border1.basf-ag.de [141.6.8.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by paris.dvs1.informatik.tu-darmstadt.de (Postfix) with ESMTP id 55259FE46 for ; Mon, 15 Dec 2003 10:06:31 +0100 (MET) Message-ID: <3FDD7992.8080301@informatik.tu-darmstadt.de> Date: Mon, 15 Dec 2003 10:06:26 +0100 From: Christian Haul User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: Form validation problem References: <000d01c3c1c0$f7922ea0$0201a8c0@jdwinspiron> In-Reply-To: <000d01c3c1c0$f7922ea0$0201a8c0@jdwinspiron> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Joe D. Williams wrote: > Working on the examples in Chapter 12 of Lajos and Jeremy's book, I cannot > get the new ticket form to return the results. It just keeps displaying the > blank form, > without updating the database. > > I am running Cocoon 2.0.4 on Tomcat 4.1.27 standalone with J2SDK1.4.1 and > MySQL 4.0.16 > > The idea is to use the "org.apache.cocoon.acting.DatabaseAddAction" to put > the info from a set of forms into a db. > > The info must first be validated using > "org.apache.cocoon.acting.FormValidatorAction". Looking at the sitemap log > for the logger "sitemap.action.validator" I find a number of messages where > it is validating the info from the forms. > > After this, there is a message: "All form params validated. An error > occurred." There will be a message in the sitemap.log indicating the validation error. In addition, the info is available as request attribute (so dump all request attributes on your page and you'll see). Besides, you should consider to move to cocoon forms aka Woody or at least use the database actions from the modular package. Their interface is a lot more consistent and have more docs. Chris. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org