Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 90936 invoked from network); 14 Jul 2003 15:01:15 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 14 Jul 2003 15:01:15 -0000 Received: (qmail 25907 invoked by uid 97); 14 Jul 2003 15:03:45 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@nagoya.betaversion.org Received: (qmail 25900 invoked from network); 14 Jul 2003 15:03:44 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 14 Jul 2003 15:03:44 -0000 Received: (qmail 88807 invoked by uid 500); 14 Jul 2003 15:00:51 -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 88796 invoked from network); 14 Jul 2003 15:00:51 -0000 Received: from unknown (HELO server2.01domain.net) (209.197.245.151) by daedalus.apache.org with SMTP; 14 Jul 2003 15:00:51 -0000 Received: from 12-253-76-237.client.attbi.com ([12.253.76.237] helo=newmedialogic.com) by server2.01domain.net with asmtp (Exim 4.20) id 19c4ou-00050O-GX for struts-user@jakarta.apache.org; Mon, 14 Jul 2003 09:00:52 -0600 Message-ID: <3F12C5A5.90500@newmedialogic.com> Date: Mon, 14 Jul 2003 09:00:53 -0600 From: Aaron Longwell User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Struts-User Subject: Please Help: ActionForm Re-Population Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server2.01domain.net X-AntiAbuse: Original Domain - jakarta.apache.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - newmedialogic.com X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I am on the last leg of a web application, and I've run into problems adding validation to the mix. I have an "edit" Action that retrieves a database record, a list of drop-down options, and then populates the "editor" ActionForm. Works great, and I LOVE STRUTS! Now I've implemented validation (through the Validator Framework, but I think my problem is with validate() in general). After the user clicks submit, their post is sent to my "update" action. If they do not break any validation rules, all goes well. The problem occurs when a validation rule is broken.... They are returned to the form... but the drop-downs (which are populated in the "edit" Action) are empty. I have set breakpoints in the code... and I see that the page neither my "edit" Action code (the part where the drop-down data is retrieved), nor my "update" Action code is actually running. Question.... between pressing submit and returning the "edit" JSP with a populated ActionErrors object. Where is "validate()" actually called? Where can I insert code to populate a drop-down with a set of values so that it will appear both when the form is presented the first time, and after a validation error? Thank you for your help, Aaron Longwell --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org