You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ne...@srb-intl.com on 2003/04/23 19:30:14 UTC

own validator.

If I want to develop my own validator 
(within separate validator-rules.xml file)
what steps I should follow?

~nn

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: own validator.

Posted by Jeff Kyser <kt...@comcast.net>.
If you didn't want to use any of the existing Struts validator rules,
you could just leave off the validator-rules.xml file in the PlugIn tag
in your struts-config.xml file, or replace it with your own.

If you just wanted to add your own rules separately, just
include your file in the comma-separated list of files
associated with the pathnames attribute:

     <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
         <set-property property="pathnames"
                       value="/WEB-INF/validator-rules.xml,
                              /WEB-INF/validator-custom-rules.xml,
                              /WEB-INF/validation.xml">
         </set-property>
     </plug-in>

-jeff

On Wednesday, April 23, 2003, at 12:30  PM, 
Nerijus.Navickas@srb-intl.com wrote:

> If I want to develop my own validator
> (within separate validator-rules.xml file)
> what steps I should follow?
>
> ~nn
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org