You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by vk vk <vk...@hotmail.com> on 2002/08/06 16:06:15 UTC

RE: Iterate and Radio tags

Hi Keith,
     Does struts.1.0.2 support indexing(indexId="index1">) to do this. If it 
is then it really helps.
Cheers
vkvk

>From: "Kamholz, Keith   (corp-staff) USX" <kk...@moog.com>
>Reply-To: "Struts Users Mailing List" <st...@jakarta.apache.org>
>To: 'Struts Users Mailing List' <st...@jakarta.apache.org>
>Subject: RE: Iterate and Radio tags Date: Tue, 6 Aug 2002 09:50:10 -0400
>
>Hey,
>I do the same thing in the app I just finished, except I used checkboxes.
>They are used very similarly though.  Part of my code is:
>
><logic:iterate id="mc" name="entries" property="mcEntries"
>type="com.moog.us.eos.beans.MCentry" indexId="index1">
>     	<tr>
>     	<td>
>	<html:checkbox name="mc" property="selections" value="<%=
>index1.toString() %>"/>
>	</td>
>	</tr>
></logic:iterate>
>
>The only difference between this and what you're doing is that you use an
><html:radio> and the corresponding property takes a boolean value rather
>that a String array (which I use with my checkboxes).
>
>Does this help you?
>
>~ Keith
>http://www.buffalo.edu/~kkamholz
>
>
>
>-----Original Message-----
>From: vk vk [mailto:vkvkvreddy@hotmail.com]
>Sent: Tuesday, August 06, 2002 9:11 AM
>To: struts-user@jakarta.apache.org
>Subject: Iterate and Radio tags
>
>
>Hi,
>    I am using STRUTS 1.0.2. And using a Radio Button inside an Iterate 
>Tag.
>I would like to give a
>unique id value to each and every radio button. The name of the button will
>be the same but the value will be different. So if a user clicks on a
>particular radio button, i will know which value is he looking for,
>depending on it i can do further search on database. I am successfully able
>to iterate through ArrayList and display values, but not able to get radio
>button working with struts 1.0.2.
>Any code or examples will be very helpful.
>
>Cheers
>Vijay
>
>
>
>
>_________________________________________________________________
>Join the world's largest e-mail service with MSN Hotmail.
>http://www.hotmail.com
>
>
>--
>To unsubscribe, e-mail:
><ma...@jakarta.apache.org>
>For additional commands, e-mail:
><ma...@jakarta.apache.org>
>
>--
>To unsubscribe, e-mail:   
><ma...@jakarta.apache.org>
>For additional commands, e-mail: 
><ma...@jakarta.apache.org>




_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>