Struts2封装获取表单数据方式
一.属性封装1.创建User实体类`package cn.entity;public class User { private String username; private String password; @Override public String toString() { return "User{" + "username='" + username + '\'' +