struts2开发_validation_struts2客户端校验
发布时间:2020-12-14 06:27:30 所属栏目:Java 来源:网络整理
导读:? com.b510.register.action; com.opensymphony.xwork2.ActionSupport; java.util.Date; RegistAction ActionSupport { serialVersionUID = 1L; String name; String password; String repassword; age; salary; Date birthday; String email; String person
com.b510.register.action; com.opensymphony.xwork2.ActionSupport; java.util.Date; RegistAction ActionSupport { serialVersionUID = 1L; String name; String password; String repassword; age; salary; Date birthday; String email; String personPage; getAge() { age; } Date getBirthday() { birthday; } String getEmail() { email; } String getName() { name; } String getPassword() { password; } String getPersonPage() { personPage; } String getRepassword() { repassword; } getSalary() { salary; } setAge( age) { .age = age; } setBirthday(Date birthday) { .birthday = birthday; } setEmail(String email) { .email = email; } setName(String name) { .name = name; } setPassword(String password) { .password = password; } setPersonPage(String personPage) { .personPage = personPage; } setRepassword(String repassword) { .repassword = repassword; } setSalary( salary) { .salary = salary; } }
true 必须输入名字 您输入的用户名只能是字母和数字 ,且长度必须在4到20之间 true 必须输入密码 您输入的密码只能是字母和数字 ,且长度必须在4到25之间 true 必须输入确认密码 您输入的确认密码错误!请重新输入 1 120 年纪必须在${min}到${max}之间 |