当前位置:编程学习 > JAVA >>

这个文件在哪

struts2验证 用的 参数 required  requiredstring
这个文件在哪 还有具体验证的类在哪呢 是不作为易做图运行的  在哪定义的呢

1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE validators PUBLIC
3    "-//OpenSymphony Group//XWork Validator Config 1.0//EN"
4    "http://www.opensymphony.com/xwork/xwork-validator-config-1.0.dtd">
5<!-- START SNIPPET: validators-default -->
6<validators>
7  <validator name="required" class="com.opensymphony.xwork2.validator.validators.RequiredFieldValidator"/>
8  <validator name="requiredstring" class="com.opensymphony.xwork2.validator.validators.RequiredStringValidator"/>
9  <validator name="int" class="com.opensymphony.xwork2.validator.validators.IntRangeFieldValidator"/>
10  <validator name="double" class="com.opensymphony.xwork2.validator.validators.DoubleRangeFieldValidator"/>
11  <validator name="date" class="com.opensymphony.xwork2.validator.validators.DateRangeFieldValidator"/>
12  <validator name="expression" class="com.opensymphony.xwork2.validator.validators.ExpressionValidator"/>
13  <validator name="fieldexpression" class="com.opensymphony.xwork2.validator.validators.FieldExpressionValidator"/>
14  <validator name="email" class="com.opensymphony.xwork2.validator.validators.EmailValidator"/>
15  <validator name="url" class="com.opensymphony.xwork2.validator.validators.URLValidator"/>
16  <validator name="visitor" class="com.opensymphony.xwork2.validator.validators.VisitorFieldValidator"/>
17  <validator name="conversion" class="com.opensymphony.xwork2.validator.validators.ConversionErrorFieldValidator"/>
18  <validator name="stringlength" class="com.opensymphony.xwork2.validator.validators.StringLengthFieldValidator"/>
19  <validator name="regex" class="com.opensymphony.xwork2.validator.validators.RegexFieldValidator"/>
20</validators>
21<!-- END SNIPPET: validators-default -->
--------------------编程问答-------------------- struts-2.1.6\src\core\src\test\resources\validators.xml
补充:Java ,  Java EE
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,