怪怪的 jsp 及 servlet 3.1

本帖最後由 小花猫 於 2016-11-11 19:36 編輯

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<c:forEach items="${allProducts}" var="prod">
</c:forEach>  

先delete 咗再加上才行得返...唉。  

HTTP Status 500 - Internal Server Error

org.apache.jasper.JasperException: javax.el.PropertyNotFoundException: The class 'java.lang.String' does not have the property 'productId'.

javax.el.PropertyNotFoundException: The class 'java.lang.String' does not have the property 'productId'.