I left out of the original post that I am using Struts 2.
--
View this message in context:
http://www.nabble.com/dynamic-checkboxes-and-radio-buttons-in-one-group-tf1971631.html#a10423856
Sent from the Struts - User mailing list archive at Nabble.com.
-
well, the number of questions and set of answers for each are dynamic
(determined at runtime). I could look at the response object but hopefully
there is a cleaner way of implementating this.
Dave Newton-4 wrote:
>
> --- elan <[EMAIL PROTECTED]> wrote:
>> On submit how do I capture which radio
--- elan <[EMAIL PROTECTED]> wrote:
> On submit how do I capture which radio buttons
> were selected since the radio name field is dynamic?
Don't make the whole name dynamic; use a map (or
something similar).
d.
__
Do You Yahoo!?
Tired of spam? Y
I am trying to figure out the same thing but using Struts. I have the
following jsp to display my questions.
For example this will display 2 questions and each question has a set of
answers with radio buttons. On submit how do I capture which radio buttons
wer
truts Users Mailing List
Sent: Friday, July 21, 2006 1:34 AM
Subject: Re: dynamic checkboxes and radio buttons in one group
Hi
I think i didn't express clearly in my previous mail.
I will try to do it again.
In my Configuration file i can have any number of questions, for each
AM
Subject: Re: dynamic checkboxes and radio buttons in one group
Hi
I think i didn't express clearly in my previous mail.
I will try to do it again.
In my Configuration file i can have any number of questions, for each
question i store question text and some kind of flag to ind
Hi
I think i didn't express clearly in my previous mail.
I will try to do it again.
In my Configuration file i can have any number of questions, for each
question i store question text and some kind of flag to indicate if i should
render single checkbox or 2 radio buttons.
If i render checkbox the
You can try to have an ArrayList/HashMap of HasMaps representing the page/form.
Each Hashmap can hold the Question/Answer set.
Please refer to Mapped Properties for more info
1. http://struts.apache.org/1.2.9/faqs/indexedprops.html
2. http://struts.apache.org/1.2.9/userGuide/buil
8 matches
Mail list logo