实体:
package entity;
import java.io.Serializable;
public class Authors implements Serializable {
private String AuthFirstName;
public Authors() {
}
public String getAuthFirstName() {
return AuthFirstName;
}
public void setAuthFirstName(String AuthFirstName) {
this.AuthFirstName = AuthFirstName;
}
}
小服务程序:
List listAuthors = authDAO.findAuthors();
request.setAttribute("lista", listAuthors);
JSP:
<c:forEach var="var" items="${lista}">
<c:out value="${var.AuthFirstName}"/>
</c:forEach>
例外:
javax.el.PropertyNotFoundException:在类型 entity.Authors 上找不到属性“AuthFirstName”
这是如何引起的,我该如何解决?