--- On Wed, 9/10/08, [EMAIL PROTECTED] wrote:
> Is this applicable to Struts 1.x?

No. What's the issue with indexed properties? They're the recommended way to 
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.
> 
>   <s:action name="GenderMap"
> var="genders"/>
>   <s:radio label="Gender"
> name="male" list="#genders.genders"/>
>   Martin 
>   ______________________________________________ 
>   Disclaimer and confidentiality note 
>   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. 
> 
> 
>   > From: [EMAIL PROTECTED]
>   > To: user@struts.apache.org
>   > Subject: Re: Dynamic radio buttons with bean
>   > Date: Wed, 10 Sep 2008 17:06:09 +0200
>   > 
>   > Sorry but i dont understand what you mean, that´s
> 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´s why I am looking for any better or easier
> ideas for "indexed properties" . >>
> http://faq.javaranch.com/java/IndexedProperties  -  
> http://struts.apache.org/1.x/struts-taglib/indexedprops.html
>   > 
>   > 
>   > Regards,
>   > 
>   >   ----- Original Message ----- 
>   >   From: Mead Lai 
>   >   To: Struts Users Mailing List 
>   >   Sent: Wednesday, September 10, 2008 3:19 PM
>   >   Subject: Re: Dynamic radio buttons with bean
>   > 
>   > 
>   >   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.
>   >   -- 
>   >   BestRegards,
>   >   Mead
>   >   http://yayisoft.com
>   > 
>   >   Jack Benny  - "I don't deserve this
> award, but I have arthritis and I don't
>   >   deserve that either."
>   > 
>   > 
>   >   On Wed, Sep 10, 2008 at 9:06 PM, Dan
> <[EMAIL PROTECTED]> wrote:
>   > 
>   >   > 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:
> [EMAIL PROTECTED]
>   >   > For additional commands, e-mail:
> [EMAIL PROTECTED]
>   >   >
>   >   >
>   > 
>   > 
>   > 
>   >
> ------------------------------------------------------------------------------
>   > 
>   > 
>   > Email procesado por MailFoundry
> 
>  
> _________________________________________________________________
>   Stay up to date on your PC, the Web, and your mobile
> phone with Windows Live.
>  
> http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/
> 
> 
> ------------------------------------------------------------------------------
> 
> 
> Email procesado por MailFoundry

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to