${sessionScope.pricer.applicableRateCode}
public class ViewPrices implements Cloneable, Serializable {
private static final long serialVersionUID = 1;
// fields
public List<RateCode> applicableRateCode = null;
}
javax.el.PropertyNotFoundException:在com。上找不到属性'applicableRateCode'。 .ViewPrices
${sessionScope.pricer}
打印值但 applicableRateCode 不会打印
答案 0 :(得分:4)
您需要向ViewPrices
添加一个getter方法。 JSP EL需要它们。
public class ViewPrices implements Cloneable, Serializable {
private static final long serialVersionUID = 1;
// fields
private List<RateCode> applicableRateCode = null;
public List<RateCode> getApplicableRateCode() {
return applicableRateCode ;
}
}
答案 1 :(得分:2)
班上缺少Setter / Getter。 JSTL EL将使用标准访问器方法访问属性