基于xml配置方式实现对action中指定方法进行输入校验
2012-07-25 14:54
901 查看
案例:
DataValidateAction-validate_save-validation.xml:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.3//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd"> <validators> <field name="user"> <field-validator type="stringlength"> <param name="maxLength">15</param> <message>用户名长度不能超过15</message> </field-validator> </field> </validators>
相关文章推荐
- 基于XML配置方式实现对action的所有方法和指定方法进行输入校验
- struts2-18基于XML配置方式实现对action的所有方法或指定方法进行输入校验
- 基于xml配置方式实现对action中指定方法进行输入校验
- Struts2_基于XML配置方式对指定action方法实现输入校验、基于XML校验的一些特点
- 基于XML配置方式对指定action方法实现输入校验
- 转载 - Struts2基于XML配置方式实现对action的所有方法进行输入校验
- 基于XML配置方式实现对action的所有方法进行输入校验
- Struts2基于XML配置方式实现对action的所有方法进行输入校验
- 【Struts2学习笔记(11)】对action的输入校验和XML配置方式实现对action的所有方法进行输入校验
- 【Struts2学习笔记(11)】对action的输入校验和XML配置方式实现对action的全部方法进行输入校验
- struts2基于XML配置方式对指定action方法进行校验
- Struts2基于XML配置方式实现对Action方法进行校验
- 第二十二章 基于XML配置方式实现对action的所有方法进行校验
- 基于XML配置方式实现对action的所有方法进行校验
- Struts2学习笔记(十四):基于XML配置方式实现对action的所有方法进行校验
- Struts2_基于XML配置方式实现对action的所有方法进行校验
- 基于XML配置方式实现对action的所有方法进行校验
- 复习struts2之基于XML配置方式实现对action的所有方法进行校验
- Struts2 基于XML配置方式实现对action的所有方法进行校验
- struts2对action中的方法进行输入校验---xml配置方式(3)