strust2技术,前台控件名 bean.属性名比如:user.name1 user.age等,在struts2中的action中成员变量private User user;再给它set get方法。这样当前台提交时自动将属性值name1 age等赋给user