1.编写JavaBean:User,必须继承于ActionForm类 package myuser; import org.apache.struts.action.ActionForm; public class User extends ActionForm{ //不加这个 eclipse 有警告 private static final long serialVersionUID = 5599822869891501922L; private Integer id; private Str