私のJavaコードから、私Set
はAddress
クラスオブジェクトを返しています...今、FreeMarkerで、このすべてのクラスオブジェクトの値の値を表示したいと思いAddress
ます..
私のJavaクラス
public class Address implements java.io.Serializable {
private String phone;
private String landLineNumber;
public Address() {}
public String getPhone() {
return this.phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getLandLineNumber() {
return this.landLineNumber;
}
public void setLandLineNumber(String landLineNumber) {
this.landLineNumber = landLineNumber;
}
FreeMarkerで私は次のことをやっています
[#list addList as ${setaddress!''} Phone : ${addList.phone!''}<br/>
Land Line : ${addList.landLineNumber!''}
[/#list]
今、入力中にエラーが発生していますが、それは正しい方法ですか???