别人这样写可以,为什么我的不行?
category.category_id int类型 condition.category_id String类型
商品类别:<select name="category_id"> <option value="">--请选择--</option> <c:forEach var="category" items="${listCategory }"> <c:choose> <c:when test="${category.category_id == condition.category_id }"> <option selected="selected" value="${category.category_id} ">${category.category_name }</option> </c:when> <c:otherwise> Caused by: javax.el.ELException: Cannot convert 19 of type class java.lang.String to class java.lang.Long
Its_forever
相关分类