struts1 标签有关问题
struts1 标签问题实体TrainPlan{@OneToOne(cascadeCascadeType.REFRESH)@JoinColumn(namebumen)privat
struts1 标签问题
实体
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