javax.el.PropertyNotFoundException: Property 'id' not found on type java.lang.St
SSH 在action跳转过程中报错:Servlet.service() for servlet jsp threw exception
javax.el.PropertyNotFoundException: Property 'id' not found on type java.lang.String --------------------编程问答-------------------- 能在详细点,单步一下 看是到那一步错了。看这个貌似是id这个属性找不到或者类型错误 --------------------编程问答-------------------- 页面报错:
javax.servlet.ServletException: org.apache.jasper.JasperException: An exception occurred processing JSP page /manager/addCourse.jsp at line 73
70: <select name="specialtyId" id="specialtyId">
71: <option value="-1">请选择专业</option>
72: <c:forEach items="specialty" var="spe">
73: <option value="${spe.id}">${spe.enterYear}届${spe.langthYear}年制${spe.name}专业</option>
74: </c:forEach>
75: </select>
76: </td>
--------------------编程问答-------------------- spe 的类呢? --------------------编程问答-------------------- 已解决
应该把<c:forEach items="specialty" var="spe">
改为<c:forEach items="${specialty}" var="spe">
补充:Java , Java EE