Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 45474 invoked from network); 10 Sep 2008 16:20:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Sep 2008 16:20:02 -0000 Received: (qmail 26956 invoked by uid 500); 10 Sep 2008 16:19:50 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 26936 invoked by uid 500); 10 Sep 2008 16:19:50 -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 26925 invoked by uid 99); 10 Sep 2008 16:19:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Sep 2008 09:19:50 -0700 X-ASF-Spam-Status: No, hits=2.4 required=10.0 tests=SPF_PASS,SUBJECT_FUZZY_TION,URIBL_BLACK X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [66.196.97.65] (HELO web56706.mail.re3.yahoo.com) (66.196.97.65) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 10 Sep 2008 16:18:50 +0000 Received: (qmail 41122 invoked by uid 60001); 10 Sep 2008 16:18:20 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=QylT6J7ExVppez2IZ+0AMMMDNQSr6znoiC2JjSCBgHSplm6pkMdQp8XPzsWXJXl5C0iVzCDgF2UjkUaxs5+y7KgseJPaMS52V+LUbCPV6TqTxQZnBq9UfJ/lZjxQDd4riosZRY0MWvIU1oF4/Cj/2GZBF1QqLw5jV5jnU59zvLc=; Received: from [63.166.14.2] by web56706.mail.re3.yahoo.com via HTTP; Wed, 10 Sep 2008 09:18:20 PDT X-Mailer: YahooMailWebService/0.7.218.2 Date: Wed, 10 Sep 2008 09:18:20 -0700 (PDT) From: Dave Newton Reply-To: newton.dave@yahoo.com Subject: Re: Dynamic radio buttons with bean To: Struts Users Mailing List In-Reply-To: <006201c91359$4640aab0$1300a8c0@empresa062zkh7> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <596218.41106.qm@web56706.mail.re3.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --- On Wed, 9/10/08, danipruebas@adw.es wrote: > Is this applicable to Struts 1.x? No. What's the issue with indexed properties? They're the recommended way t= o deal with indexed properties. You could just do it by hand, tool. Dave > http://struts.apache.org/2.x/docs/radio.html > specigy your list attribute to point to iterable map ( > returned from Action class ) > e.g. >=20 > var=3D"genders"/> > name=3D"male" list=3D"#genders.genders"/> > Martin=20 > ______________________________________________=20 > Disclaimer and confidentiality note=20 > Everything in this e-mail and any attachments relates to > the official business of Sender. This transmission is of a > confidential nature and Sender does not endorse distribution > to any party other than intended recipient. Sender does not > necessarily endorse content contained within this > transmission.=20 >=20 >=20 > > From: danipruebas@adw.es > > To: user@struts.apache.org > > Subject: Re: Dynamic radio buttons with bean > > Date: Wed, 10 Sep 2008 17:06:09 +0200 > >=20 > > Sorry but i dont understand what you mean, that=B4s > what I am trying to do, get the data, send it though a > request bean to the jsp, and display the info as a radio > button. As far as i know, is not as easy as 123 (or I > think), that=B4s why I am looking for any better or easier > ideas for "indexed properties" . >> > http://faq.javaranch.com/java/IndexedProperties - =20 > http://struts.apache.org/1.x/struts-taglib/indexedprops.html > >=20 > >=20 > > Regards, > >=20 > > ----- Original Message -----=20 > > From: Mead Lai=20 > > To: Struts Users Mailing List=20 > > Sent: Wednesday, September 10, 2008 3:19 PM > > Subject: Re: Dynamic radio buttons with bean > >=20 > >=20 > > use servlet the get the html, create the item name > from database; > > then use servlet request get the value in the > html, the name of buttons U > > can get from database 2. > > I think it's simple than others. > > --=20 > > BestRegards, > > Mead > > http://yayisoft.com > >=20 > > Jack Benny - "I don't deserve this > award, but I have arthritis and I don't > > deserve that either." > >=20 > >=20 > > On Wed, Sep 10, 2008 at 9:06 PM, Dan > wrote: > >=20 > > > Hi, > > > > > > I need to display in a jsp a form with > dynamic radio buttons, I mean: > > > > > > There are several items in my DB. One item is > read (each item has one > > > question and 4 possible answers). > > > I need to display the question and the 4 > answers as a radio option > > > dynamically (with a bean). Then the users > cheks an answer, and submits the > > > selected option. The corresponding action is > called. Afterwards, another > > > different item is selected and the > question/answers displayed, till the end > > > of the test. > > > > > > I found this approach to display the > properties of a bean as dynamic > > > options using "Indexed properties" > at: > > > > http://faq.javaranch.com/java/IndexedProperties > > > > > > Is there another "approach" or > option to develop this stuff? > > > > > > Regards and thanks in advance ;) > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > user-unsubscribe@struts.apache.org > > > For additional commands, e-mail: > user-help@struts.apache.org > > > > > > > >=20 > >=20 > >=20 > > > -------------------------------------------------------------------------= ----- > >=20 > >=20 > > Email procesado por MailFoundry >=20 > =20 > _________________________________________________________________ > Stay up to date on your PC, the Web, and your mobile > phone with Windows Live. > =20 > http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/ >=20 >=20 > -------------------------------------------------------------------------= ----- >=20 >=20 > Email procesado por MailFoundry --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org