保存修改的内容
我使用下面的代码进行保存会出错,不知道,各位高手能不能帮我看一下......
public void updateObject(ActionContext ctx, Object object) throws TrException {
SbPlanNdzqx ndzqx = (SbPlanNdzqx) object;
String newplanMonth = (String) ctx.getParameterMap().get("newplanMonth");
newplanMonth = newplanMonth.substring(5,7);
ndzqx.setPlanMonth(newplanMonth);
ndzqx.setFormCreate(this.getMakeDate());
dao.updateObject(object);
this.setIfRecreateList(true);
}