ITeye博客

struts1中actionForm问题

BillyJoy · 2011-04-22 11:01 · 编程语言 · Markdown

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();

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。