webwork的配置文件看不懂
<validators><validatorname="required"class="com.opensymphony.webwork.validators.JavaS...
<validators>
<validator name="required" class="com.opensymphony.webwork.validators.JavaScriptRequiredFieldValidator"/>
<validator name="requiredstring" class="com.opensymphony.webwork.validators.JavaScriptRequiredStringValidator"/>
<validator name="int" class="com.opensymphony.webwork.validators.JavaScriptIntRangeFieldValidator"/>
<validator name="date" class="com.opensymphony.webwork.validators.JavaScriptDateRangeFieldValidator"/>
<validator name="expression" class="com.opensymphony.xwork.validator.validators.ExpressionValidator"/>
<validator name="fieldexpression" class="com.opensymphony.xwork.validator.validators.FieldExpressionValidator"/>
<validator name="email" class="com.opensymphony.webwork.validators.JavaScriptEmailValidator"/>
<validator name="url" class="com.opensymphony.webwork.validators.JavaScriptURLValidator"/>
<validator name="visitor" class="com.opensymphony.webwork.validators.JavaScriptVisitorFieldValidator"/>
<validator name="conversion" class="com.opensymphony.xwork.validator.validators.ConversionErrorFieldValidator"/>
<validator name="stringlength" class="com.opensymphony.xwork.validator.validators.StringLengthFieldValidator"/>
</validators>
我在下了一个简单的注册的webwork的项目,发现src下有个validator.xml,那是什么啊,里面那些是什么啊? 展开
<validator name="required" class="com.opensymphony.webwork.validators.JavaScriptRequiredFieldValidator"/>
<validator name="requiredstring" class="com.opensymphony.webwork.validators.JavaScriptRequiredStringValidator"/>
<validator name="int" class="com.opensymphony.webwork.validators.JavaScriptIntRangeFieldValidator"/>
<validator name="date" class="com.opensymphony.webwork.validators.JavaScriptDateRangeFieldValidator"/>
<validator name="expression" class="com.opensymphony.xwork.validator.validators.ExpressionValidator"/>
<validator name="fieldexpression" class="com.opensymphony.xwork.validator.validators.FieldExpressionValidator"/>
<validator name="email" class="com.opensymphony.webwork.validators.JavaScriptEmailValidator"/>
<validator name="url" class="com.opensymphony.webwork.validators.JavaScriptURLValidator"/>
<validator name="visitor" class="com.opensymphony.webwork.validators.JavaScriptVisitorFieldValidator"/>
<validator name="conversion" class="com.opensymphony.xwork.validator.validators.ConversionErrorFieldValidator"/>
<validator name="stringlength" class="com.opensymphony.xwork.validator.validators.StringLengthFieldValidator"/>
</validators>
我在下了一个简单的注册的webwork的项目,发现src下有个validator.xml,那是什么啊,里面那些是什么啊? 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询