This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:select inside logic:iterate

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

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>
</select>

</TD>
</logic:iterate>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic