If the idea of custom tags is to remove ALL Java code from the JSP, I'd say
this wasn't satisfactory.  Just MHO, not criticism.  There's no doubt it
works, but I'd want more.

We'd like to have an index assigned to all elements in a repeated form
(e.g., one form's worth of HTML input widgets for each vehicle in an auto
insurance issue app).  How to accomplish this?

-----Original Message-----
From: Sheikh, Jawwad [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 16, 2001 12:48 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Iterate and Radio tags


Amar

I had a situation where I was using a 'for' loop instead of the
iterate tag. So to assign a unique value, this what I did.

     <html:radio property="radiobutton" value="<%= String.valueOf(i) %>"
/>

where 'i' is the loop counter.

Hope this helps.

Jawwad

-----Original Message-----
From: Nanduri, Amarnath [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 16, 2001 10:31 AM
To: '[EMAIL PROTECTED]'
Subject: Iterate and Radio tags


Hi All,

    I am using a Radio Button in 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 ona
particular radio button, i will know which value is he looking for ? Is
this
possible using the struts html:radio tag ? or do i need to use a
different
tag ?

cheers,
Amar..

Reply via email to