1.ER表达式三木运算符
<select name="category_id">
<c:forEach var="category" items="${categoryList}">
<option value="${category.id }" ${category.id==book.category.id?"selected":""}>${category.name }</option>
</c:forEach>
</select>
1.ER表达式三木运算符
<select name="category_id">
<c:forEach var="category" items="${categoryList}">
<option value="${category.id }" ${category.id==book.category.id?"selected":""}>${category.name }</option>
</c:forEach>
</select>