struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Perry Minchew" <pminc...@barlingbay.com>
Subject Radio buttons and iterate
Date Tue, 07 Nov 2006 19:44:43 GMT
Hi all,

 

I asked this question earlier, but did not see a response, so I'll try
again. Here's my jsp

<table>

<logic:iterate id="admins" name="requestList">

<tr><td> <bean:write name="admins" property="dn"/> </td>

<td><bean:write name="admins" property="givenname"/></td>

<td><bean:write name="admins" property="sn"/></td>

<td><bean:write name="admins" property="telephonenumber"/></td>

<td><bean:write name="admins" property="mail"/></td>

<td><bean:write name="admins" property="portal"/></td>

<td><bean:write name="admins" property="requestedApp"/></td>

<td><html:radio property="reqStatus" value="PENDING"
name="admins">N/C</html:radio>

<html:radio property="reqStatus" value="APPROVED"
name="admins">Approve</html:radio>

<html:radio property="reqStatus" value="DENIED"
name="admins">Deny</html:radio></td>

</tr>

</logic:iterate>

</table>

 

So I'm iterating over the array list (requestList) and displaying
information from our oracle database. I get solid output for the 4 in my
test list. However, all of the radio buttons are "linked". At the admin
screen, I see 12 radio buttons, and only one of them is marked (the last
one). Clicking a radio button on a row above makes the "global" radio
change. How do I make each row have it's on radio set with the iterate
feature?

 

Thanks

 

Perry Minchew

Systems Integrator

SPAWAR Systems Charleston

Office : (843) 218.7031

Cell : (843) 822.1555

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message