EL 会话对象属性
${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...ViewPrices 上找不到属性“applicableRateCode”
${sessionScope.pricer}
打印值,但 applicableRateCode不会打印
${sessionScope.pricer.applicableRateCode}
public class ViewPrices implements Cloneable, Serializable {
private static final long serialVersionUID = 1;
// fields
public List<RateCode> applicableRateCode = null;
}
javax.el.PropertyNotFoundException: Property 'applicableRateCode' not found on type com...ViewPrices
${sessionScope.pricer}
prints value but applicableRateCode won't print
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要向
ViewPrices
添加一个 getter 方法。 JSP EL 需要它们。You need to add a getter method to
ViewPrices
. JSP EL requires them.类中缺少 Setter/Getter。 JSTL EL 将使用标准访问器方法访问属性
Setter/Getter are missing in the class . JSTL EL will access property using standard accessors methods