Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@www.apache.org Received: (qmail 82131 invoked from network); 9 Feb 2004 09:45:39 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 9 Feb 2004 09:45:39 -0000 Received: (qmail 13977 invoked by uid 500); 9 Feb 2004 09:44:39 -0000 Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 13951 invoked by uid 500); 9 Feb 2004 09:44:38 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 13910 invoked from network); 9 Feb 2004 09:44:38 -0000 Received: from unknown (HELO harlan.open1.it) (217.58.39.101) by daedalus.apache.org with SMTP; 9 Feb 2004 09:44:38 -0000 Received: from open1.it (localhost [127.0.0.1]) by harlan.open1.it (8.11.7p1+Sun/8.11.6) with ESMTP id i199lJN09444 for ; Mon, 9 Feb 2004 10:47:19 +0100 (MET) Message-ID: <4027573A.934D36E3@open1.it> Date: Mon, 09 Feb 2004 10:47:38 +0100 From: Michele Callegari Organization: Open1 Srl X-Mailer: Mozilla 4.79 [en] (WinNT; U) X-Accept-Language: en-US,it MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: repost: validator & retrieving data References: Content-Type: text/plain; charset=us-ascii 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 > "If there are 2 actions, one to "prepare" the page and > one to "process" the user input, we define the input attribute > value of the "process" action mapping to be the URL of the > "prepare" action." I think it's right,.... I think it's right only in simple cases If your "prepare" means: - Putting in the request a collection for a select (for example) - Initializing the form with data from DB or any other source You are doing 2 things completely different (logically) in the same action and that's why you need a workaround with hidden fields or hard coded path or.... The cleanest solution is to separate this "prepare" action in 2 actions. Too much? OK! Choose any other way you like! But it won't be "clean". --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org