• Post Reply Bookmark Topic Watch Topic
  • New Topic

html:select inside logic:iterate  RSS feed

Sri Ram
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a html:select inside logic:iterate. My slect box will have only two values Passed or Failed .. but for each iteration based on the value from my vector ..I need to select either one of this.. I really don't know how to set this .. Please let me know.

My drop down should have Passed as well as Failed ../but one of this should be selected ..

<logic:iterate id="infoVector" name="infoDataVectorHolder" property="infoVector" scope="request" indexId="ctr" >

<tr align=center>
<TD width=150px align=center><input type="checkbox" name="select<%= ctr %>" value="<bean:write name="infoVector" property="select" />"></TD>
<TD width=300px align=center><bean:write name="infoVector" property="modelYr" /></TD>
<TD width=250px align=center><bean:write name="infoVector" property="PCM" /></TD>
<TD width=350px align=center><bean:write name="infoVector" property="vin" /></TD>
<TD width=250px align=center><bean:write name="infoVector" property="bodyModel" /></TD>
<TD width=350px><bean:write name="infoVector" property="description" /></TD>
<TD width=150px align=center><input type="text" size="5" name="tested<%= ctr %>" value="<bean:write name="infoVector" property="tested"/>"></TD>
<TD class=tableBoldCellClear width=150px>
<select name="result<%= ctr %>" value="<bean:write name="infoVector" property="result" />">
<option value="Passed">Passed</option>
<option value="Failed">Failed</option>

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!