加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Java > 正文

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}之间 2000.0 10000.0 工资必须在${min}到${max}之间 1950-01-01 2100-01-01 生日必须在${min}到${max}之间 你输入的邮箱必须是一个有效,如:example@163.com 你输入的个人主页地址必须有效,如:http://www.example.com

/regist.jsp /show.jsp .

请输入您的注册信息 请输入您的注册信息

校验成功 校验成功 用户名:< 密码:< 工资:< 年龄:< 生日:< 邮箱:< 个人主页:

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读