Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 86957 invoked from network); 1 Jul 2003 14:27:58 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 1 Jul 2003 14:27:58 -0000 Received: (qmail 11957 invoked by uid 97); 1 Jul 2003 14:30:23 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@nagoya.betaversion.org Received: (qmail 11950 invoked from network); 1 Jul 2003 14:30:22 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 1 Jul 2003 14:30:22 -0000 Received: (qmail 85003 invoked by uid 500); 1 Jul 2003 14:27:34 -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 84987 invoked from network); 1 Jul 2003 14:27:33 -0000 Received: from moutng.kundenserver.de (212.227.126.177) by daedalus.apache.org with SMTP; 1 Jul 2003 14:27:33 -0000 Received: from [212.227.126.205] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 19XM6Z-0005yf-00 for struts-user@jakarta.apache.org; Tue, 01 Jul 2003 16:27:35 +0200 Received: from [80.128.30.39] (helo=cyberspaceroad.com) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 19XM6Z-0001Qi-00 for struts-user@jakarta.apache.org; Tue, 01 Jul 2003 16:27:35 +0200 Message-ID: <3F019A16.3030106@cyberspaceroad.com> Date: Tue, 01 Jul 2003 16:26:30 +0200 From: Adam Hardy User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021212 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: Initialize Struts form with request parameters References: <009a01c33fda$117ed110$6500a8c0@nb50> In-Reply-To: <009a01c33fda$117ed110$6500a8c0@nb50> 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: daedalus.apache.org 1.6.2 0/1000/N This would happen automatically if you access the JSP via an action mapping in your struts-config. You specify the action class, the action form and the forward/jsp. struts will automatically instantiate the form when the request comes in and populate the form properties with any equivalent request parameters. hth Adam Tien Nguyen wrote: > Hi all, > I have a problem with struts form. > > The form is: > > > > > > > and the ActionForm has the following properties (fields and > getters/setters): > traineeId > name > > What I want is: the traineeId must be initialized by a value passed via > URL: > e.g: http://localhost/test/chooseTraineePage.jsp?traineeId=12345 > > How can I do that? > Your reply is highly appreciated! > Thanks > Tien > > -----Original Message----- > From: struts-user-digest-help@jakarta.apache.org > [mailto:struts-user-digest-help@jakarta.apache.org] > Sent: Tuesday, July 01, 2003 3:08 PM > To: struts-user@jakarta.apache.org > Subject: struts-user Digest 1 Jul 2003 13:07:49 -0000 Issue 3513 > > > struts-user Digest 1 Jul 2003 13:07:49 -0000 Issue 3513 > > Topics (messages 84024 through 84051): > > show selected value in html:options field > 84024 by: Stefan Schaebel > > Re: with sessionAttributes > 84025 by: Nicolas De Loof > 84026 by: Filip Polsakiewicz > > Re: [ANNOUNCEMENT] Struts 1.1 Final released > 84027 by: Arnaud HERITIER > > Re: Can I have a   _not_ URL encoded? > 84028 by: Marco Maier > 84029 by: Samuel.Opoku-Boadu.t-systems.com > > Re: setting input for action > 84030 by: thart.part.net > > Validations in Struts 1.0 > 84031 by: sriram > > Populating select boxes dynamically > 84032 by: sriram > 84043 by: Alex Shneyderman > > disabling form element > 84033 by: Frances Aleah Z. de Guzman > 84034 by: Mark Lowe > > REPOST: Help! - java.security.AccessControlException > 84035 by: White, Joshua A (HTSC, CASD) > > Problem With Struts1.1 Example > 84036 by: Saroj Kumar Choudhury > > knowing which DispatchAction called an Action > 84037 by: Ionel Gardais > > where does a form element get and put it's data > 84038 by: Heather Buch > 84040 by: Adam Hardy > > Newbie question: DispatchAction subclassing > 84039 by: Paula Coll > > Upgrading to Struts 1.1 > 84041 by: Natalie D Rassmann > 84051 by: Hajratwala, Nayan (N.) > > Display table contents > 84042 by: Arnost Foo > > Tag to remove jsp from cache??? > 84044 by: Prashanth.S > 84046 by: Alex Shneyderman > 84048 by: Nicolas De Loof > > External style sheets and tiles. > 84045 by: James Watkins > 84047 by: Nicolas De Loof > > Could not parse deployment descriptor: java.io.IOException: cannot > resolve '/WEB-INF/struts-bean.tld' into a valid tag library > 84049 by: PREETAM Balijepalli > 84050 by: Adam Hardy > > Administrivia: > > To subscribe to the digest, e-mail: > struts-user-digest-subscribe@jakarta.apache.org > > To unsubscribe from the digest, e-mail: > struts-user-digest-unsubscribe@jakarta.apache.org > > To post to the list, e-mail: > struts-user@jakarta.apache.org > > > ---------------------------------------------------------------------- > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: struts-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org