private CustomerGroup customerGroup;
public CustomerGroup getCustomerGroup() {
return customerGroup;
}
public void setCustomerGroup (CustomerGroup customerGroup) {
this.customerGroup= customerGroup;
}
인쇄 할 때 customerGroup
은 그룹 이름을 나타냅니다. System.out.println("Customer Group is "+customerRecord.getCustomerGroup().getGroupName());
이름이 jsp에 표시되지 않습니다
하지만 JSP로 표시 할 때 그룹 이름이 표시되지 않으며 패키지와 함께 표시되는 클래스 이름입니다.
<%@ taglib prefix="s" uri="/struts-tags"%>
<s:iterator value="list">
<s:property value="customerGroup"/>
</s:iterator>