2011-04-30 80 views
1
${sessionScope.pricer.applicableRateCode} 

public class ViewPrices implements Cloneable, Serializable {  
    private static final long serialVersionUID = 1; 
    // fields  
    public List<RateCode> applicableRateCode = null; 
} 

javax.el.PropertyNotFoundException:房產 'applicableRateCode' 上輸入com找不到。 .ViewPricesEL會話對象屬性

${sessionScope.pricer}版畫的價值,但applicableRateCode將不打印

回答

2

二傳手/消氣缺少的類。 JSTL EL將使用標準的存取方法

4

你需要一個getter方法添加到ViewPrices訪問屬性。 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 ; 
    } 
}