Hi
I am working on a form in which some default value must be set over the form.
I have a bean in which a array value
abc{"OR","AND"}; and his index value { "O","A"}
and a default value "O".
In the form i want to set this in the <select>
in this form
<select>
<option value="O" selected>OR</option>
<option value="A">AND</option>
</select>
I tried and getting the result using scriptlets.
this is the code i am using
<logic:iterate id="element" name="searchValue" property="conditionsIndex"
indexId="index">
<p>
<c:choose>
<c:when test="${element eq searchValue.surveyJoinOne}">
<option value= "<c:out value="${element}"/>" selected>
<%=searchValue.getConditionsValue(index.intValue())%></option>
</c:when>
<c:otherwise>
<option value= "<c:out value="${element}"/>" >
<%=searchValue.getConditionsValue(index.intValue())%></option>
</c:otherwise>
</c:choose>
</p>
</logic:iterate>
Is any way this using pure struts implementation or using jstl
regards
shashi bhushna