Re: dynamic checkboxes and radio buttons in one group

2007-05-10 Thread elan
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. -

Re: dynamic checkboxes and radio buttons in one group

2007-05-10 Thread elan
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

Re: dynamic checkboxes and radio buttons in one group

2007-05-10 Thread Dave Newton
--- 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

Re: dynamic checkboxes and radio buttons in one group

2007-05-10 Thread elan
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

Re: dynamic checkboxes and radio buttons in one group

2006-07-21 Thread Thomas Joseph
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

Re: dynamic checkboxes and radio buttons in one group

2006-07-21 Thread Thomas Joseph
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

Re: dynamic checkboxes and radio buttons in one group

2006-07-20 Thread Jakub Milkiewicz
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

Re: dynamic checkboxes and radio buttons in one group

2006-07-20 Thread Thomas Joseph
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