Thanks Chris for the response. But here is the problem. <logic:iterate id="apprEntry" name="listDevApprGrpList" indexId="userIndex"> .. <html:radio value="A" name="apprEntry" property="primary_or_adjunct" indexed="true" onclick="">Pri.</html:radio> <html:radio value="B" name="apprEntry" property="primary_or_adjunct" indexed="true" onclick="">Adj.</html:radio> ..
The resultant html code is ... <input type="radio" name="apprEntry[0].primary_or_adjunct" value="A" checked="checked" onclick="">Pri. <input type="radio" name="apprEntry[0].primary_or_adjunct" value="B" onclick="">Adj. ... <input type="radio" name="apprEntry[1].primary_or_adjunct" value="A" checked="checked" onclick="">Pri. <input type="radio" name="apprEntry[1].primary_or_adjunct" value="B" onclick="">Adj. ... You are right to say that the all the radio with the same name are considered in one group . Now how do i obtain the value or which radio button is checked. Can I access in Javascript or in the action class.? Please do let me know. Thank you for your response once again. Uday Karrothi On 9/26/06, Chris Pratt <[EMAIL PROTECTED]> wrote:
All the radio buttons (or checkboxes) with the same name are in a "button group". The value of the selected radio button (or list of selected checkboxes) is returned from request.getParameter() (or request.getParameterValues()). (*Chris*) On 9/26/06, Uday Chandra Karrothi <[EMAIL PROTECTED]> wrote: > > Hi there, > > I have a problem. I am using groups of radio buttons. > > > > <logic:iterate id="apprEntry" name="listDevApprGrpList" > indexId="userIndex"> > > .. > > <html:radio value="A" name="apprEntry" property="primary_or_adjunct" > indexed="true" onclick="">Pri.</html:radio> > > <html:radio value="B" name="apprEntry" property="primary_or_adjunct" > indexed="true" onclick="">Adj.</html:radio> > > .. > > > How can get the value of the selected radio buttons in the action > form. Is there something > like a multibox for a radio group? > if it is just one radio button group, i can get it from the property > of the form bean. But when i there are multiple radio button groups, > then how do i get the value of each of the button groups. > > > I already spent a day of my time on this. Please advice me on this. > Please direct me to the right resource > > Thank you, > Uday Karrothi > > -- > Never explain--your friends do not need it and your enemies will not > believe you anyway--Elbert Hubbard > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
-- Never explain--your friends do not need it and your enemies will not believe you anyway--Elbert Hubbard --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]