Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@www.apache.org Received: (qmail 36420 invoked from network); 16 Sep 2003 22:09:11 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 16 Sep 2003 22:09:11 -0000 Received: (qmail 18456 invoked by uid 500); 16 Sep 2003 22:08:37 -0000 Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 18154 invoked by uid 500); 16 Sep 2003 22:08:35 -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 18141 invoked from network); 16 Sep 2003 22:08:35 -0000 Received: from unknown (HELO t5.cwihosting.com) (64.49.220.227) by daedalus.apache.org with SMTP; 16 Sep 2003 22:08:35 -0000 Received: from adsl-63-196-243-22.dsl.lsan03.pacbell.net ([63.196.243.22] helo=Barry) by t5.cwihosting.com with smtp (Exim 4.20) id 19zNzx-0005vx-Jq for struts-user@jakarta.apache.org; Tue, 16 Sep 2003 17:08:37 -0500 Message-ID: <000001c37c9f$14612160$6400a8c0@Barry> From: "Barry Volpe" To: "Struts Users Mailing List" References: <001c01c37c62$f6984780$c32440c2@sue> Subject: Re: How to fill textfields from FormBean? Date: Tue, 16 Sep 2003 09:54:50 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - t5.cwihosting.com X-AntiAbuse: Original Domain - jakarta.apache.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - childrencare.com 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 Use the form bean in your action something like this: public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,HttpServletResponse response) throws IOException, ServletException { RegForm form = null; form = new RegForm(); //The following is an example, pull from your database to fill the text field parameters. form.setAddress("34 Road"); form.setName("Mike"); form.setZip("112343"); //Now foward to your form and your text fields will be populated. Barry ----- Original Message ----- From: "Dirk Behrendt" To: Sent: Tuesday, September 16, 2003 7:58 AM Subject: How to fill textfields from FormBean? > Hello! > > I have made a registration JSP (name, address, zip, ....) and I want > that the user can modify his account. > > So I have an action class and a form bean for the registration. Now I > want to implement an action class which shows the registration JSP and > fills automatically the textfields with the stored values. The user can > change the values. > > How can I realize it? Is there a possibility to forward the values to > the JSP? > > Dirk > > > --------------------------------------------------------------------- > 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