---
title: "struts1中actionForm问题"
author: "BillyJoy"
date: "2011-04-22T11:01:13Z"
tags: []
categories: ["编程语言"]
slug: "struts1-actionform"
draft: false
lastmod: "2011-04-22T11:01:13Z"
id: 1012537
url: "https://billyjoy.iteye.com/blog/1012537"
---

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

jsp中  &lt;input type="text" name="librarier.account" value=""/&gt;

 

ActionForm属性 private Librarier librarier;

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

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

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

 

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