Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 4627 invoked from network); 16 Mar 2011 05:32:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Mar 2011 05:32:02 -0000 Received: (qmail 35813 invoked by uid 500); 16 Mar 2011 05:31:59 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 35735 invoked by uid 500); 16 Mar 2011 05:31:58 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 35726 invoked by uid 99); 16 Mar 2011 05:31:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Mar 2011 05:31:58 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jlmagc@gmail.com designates 209.85.214.176 as permitted sender) Received: from [209.85.214.176] (HELO mail-iw0-f176.google.com) (209.85.214.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Mar 2011 05:31:52 +0000 Received: by iwr19 with SMTP id 19so1859636iwr.35 for ; Tue, 15 Mar 2011 22:31:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=mnKi41mvkA5sPAspkzm8s3aEFR6DUEByVBKVJEUuIC8=; b=K4D2GKFzn9cqet3aLiQ7hs3dbgZ0yrOnnuUcT90oh5eeXHlt++uahbpMVokqW7yJTh v/CkXJC7K9joBDKLaXWikksRyhc0kYyNHLPRL/WSWMYyzJGMeO7cnliUwlNTVLL9TU+N /8hjV5EavHnFAaseuh4Au0l9cYLVB4OCD8hy0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=kXuHen7t3WTxNM6KaMl72hpwf6PnSvWBaovNnTvEHBPuncZ+LIaCEu3LBx9p6az1ZC 2oxjS055P3SP9rU1PNqQpMVRv/857hGoQrOMtCon+rTxFfdEIeycSbsD2Moos+1KwHzc jeMvc6ScULdB/rMkDF2BrQ0cxcaNyB6QcSX5s= MIME-Version: 1.0 Received: by 10.231.33.8 with SMTP id f8mr334675ibd.22.1300253490412; Tue, 15 Mar 2011 22:31:30 -0700 (PDT) Received: by 10.231.115.139 with HTTP; Tue, 15 Mar 2011 22:31:30 -0700 (PDT) In-Reply-To: <1300252010664-3758519.post@n5.nabble.com> References: <1300208226959-3710199.post@n5.nabble.com> <1300208831707-3710504.post@n5.nabble.com> <1300248765939-3756079.post@n5.nabble.com> <1300250534391-3757371.post@n5.nabble.com> <1300251311390-3757953.post@n5.nabble.com> <1300252010664-3758519.post@n5.nabble.com> Date: Wed, 16 Mar 2011 01:31:30 -0400 Message-ID: Subject: Re: RE: loading Dropdown dynamically from database From: JOSE L MARTINEZ-AVIAL To: Struts Users Mailing List Content-Type: multipart/alternative; boundary=00032557496a69fc2d049e92db0d X-Virus-Checked: Checked by ClamAV on apache.org --00032557496a69fc2d049e92db0d Content-Type: text/plain; charset=ISO-8859-1 Struts does not know that yo want to should map that domainType to your bean. It wil try to map the parameters received from the request to the action. So for each parameter it founds in the request received from the user, it is gonna look in the action for a set. If I remember correctly, if the parameter name has a dot, it will understand that is a setter in an bean, so if you put a parameter name called "myBean.myValue", it will try to look for a setMyBean, which receives an object that has a setMyValue, and it will try to instantiate the bean and do both sets. But that's not the case in your jsp, since the parameter name is just domainType. But I'm still missing something. From your code I suppouse you want to show the user a list of domains, then he selects one, and then your application load the data, and return to the user with the same jsp, where he can change some values, and press save, who will send the form to the server, and save it in the database, is that right? 2011/3/16 JavaNoobie87 > No its not present in the action class. That snippet was taken from the > bean > class, that im using to set the values. Pardon my ignorance , but should i > set it in the action class too? (because i dont use it in the action class > directly ). > The bean class is just a set of getters and setters that im using to > populate values. Ive placed the latest code for all my classes below for > reference . > http://struts.1045723.n5.nabble.com/file/n3758519/J07uQBr5.txt Action.txt > http://struts.1045723.n5.nabble.com/file/n3758519/VtZEa16s.txt DAO.txt > http://struts.1045723.n5.nabble.com/file/n3758519/XK3DkNCG.txt Bean.txt > http://struts.1045723.n5.nabble.com/file/n3758519/jWjVuV7W.txt jspfile.txt > > -- > View this message in context: > http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3758519.html > Sent from the Struts - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > --00032557496a69fc2d049e92db0d--