struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "MaFai" <zh...@hkbn.com.hk>
Subject Re: Re: Validator Still confusing me
Date Mon, 30 Jun 2003 11:49:47 GMT
Hello, Gemes Tibor,

why?I only need the "require" function.
and which validator must be add in validator-rules.xml?

======= At 2003-06-30, 13:31:00 you wrote: =======

>MaFai 甏ta:
>
>>validator-rules.xml
>><!DOCTYPE form-validation PUBLIC
>>          "-//Apache Software Foundation//DTD Commons Validator Rules Configuration
1.0//EN"
>>          "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd">
>>
>><form-validation>
>>
>>   <global>
>>      <validator name="required"
>>            classname="org.apache.struts.validator.FieldChecks"
>>               method="validateRequired"
>>         methodParams="java.lang.Object,
>>                       org.apache.commons.validator.ValidatorAction,
>>                       org.apache.commons.validator.Field,
>>                       org.apache.struts.action.ActionErrors,
>>                       javax.servlet.http.HttpServletRequest"
>>                  msg="errors.required">
>>      </validator>
>>   </global>
>>
>></form-validation>
>>  
>>
>
>
>This file should be much-much longer. about 40k in size. You should not 
>edit this without a good reason.
>
>Tib
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>.

= = = = = = = = = = = = = = = = = = = =
			

Best regards.				 
MaFai
zh-ma@hkbn.com.hk
2003-06-30



Mime
View raw message