drop down
Hello All,
I have a requirement such that if the user enters a number in the text box ...the drop sown has to show that number as a default selected...I know that there is an attribute called selected but not able to make correct use if it ...any example is greatly appreciated...
Thanks,
Greeshma...
# 7
Thanks for your reply ...but what if there is no text box...ie., if the user selects an option goes back to the previous page hitting the back button and comes to same page again, then how can we make the dropdown populate with the seleceted value...
Help is greatly appreciated...
Thanks,
Greeshma...
# 8
Thanks Got it :)
Did something like this ;
<option ><c:choose>
<c:when test="cond">
<c:out value="selected"/>
</c:when>
<c:otherwise>
<c:out value=""/>
</c:otherwise>
</c:choose>>
<c:out value="${value}"/>
</option>
Thanks...