I am trying to take author information from my database and use it to populate a drop down list in a form for creating books. I have tried:
<select name="authorId">
<c:forEach items="${dropDownAuthors}" var="items">
<option value="${items.authorId}">${items.authorName}</option>
</c:forEach>
</select>
But my drop-down is empty, I did an alert of the drop-down authors and that works fine, I am really confused as what the problem is. edit: ok guys I feel really stupid now, because of your comments I double checked and i forgot the tag libraries which was my only problem and it works fine now.