实体
TrainPlan{
@OneToOne(cascade=CascadeType.REFRESH)
@JoinColumn(name="bumen")
private Department department;
}
action
BeanUtils.copyProperties(formbean, tpl);
jsp页面怎么显示 department对应的 deptName值
这样报错
<html:text property="department" disabled="true"></html:text>
------解决方案--------------------
com.ntsafe.web.formbean.train.TrainPlanForm
给
private Department department;
属性加上 getter 和 setter
------解决方案--------------------
No getter method for property: "department.deptName" of bean: "com.ntsafe.web.formbean.train.TrainPlanForm