struts1中actionForm有关问题

struts1中actionForm问题javax.servlet.ServletException: BeanUtils.populatejava.lang.IllegalArgumentE

struts1中actionForm问题

javax.servlet.ServletException: BeanUtils.populate
java.lang.IllegalArgumentException: No bean specified

jsp中 ?<input type="text" name="librarier.account" value=""/>

?

ActionForm属性 private Librarier librarier;

提交表单后,进不了 action,报错。

原因是librarier.account ,会在ActionForm 调用 getLibrarier().getAccount

librarier没有实例化,就出问题了

?

解决方法?private Librarier librarier = new Librarier();

?