struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Kyser <ktra...@comcast.net>
Subject Re: own validator.
Date Wed, 23 Apr 2003 18:52:30 GMT
and I guess you've checked and your framework.util.Validator class
has in fact been incorporated into a jar file or a classes directory
accessible underneath your /WEB-INF directory?

sorry, pretty much outta suggestions

-jeff

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

> Then it is strange - if I define in struts-config.xml:
>
> 	<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
> 		<set-property
> 				property="pathnames"
> 				value="/WEB-INF/validator-rules.xml,/WEB-INF/my-roolz.xml,/WEB- 
> INF/validation.xml"/>
> 	</plug-in>
>
> and it works for JScript validations, but it is not accessible for
> ValidatorActionForm validate(), because some extra loading should be  
> done.
>
> That seems strange if it so or there is a creap in my code somewhere...
>
>
>
> -----Original Message-----
> From: otisg [mailto:otisg@ureach.com]
> Sent: Wednesday, April 23, 2003 2:14 PM
> To: Nerijus.Navickas@srb-intl.com
> Subject: Re: RE: own validator.
>
>
> You have to map it to the Form beans in the other validator
> (validation?) .xml file.
>
> It requires some reading.... I didn't find it to be very
> straight forward.
> Onjava.com has a few helpful articles.
>
> Otis
>
>
> ________________________________________________
> Get your own "800" number
> Voicemail, fax, email, and a lot more
> http://www.ureach.com/reg/tag
>
>
> ---- On Wed, 23 Apr 2003, Nerijus.Navickas@srb-intl.com
> (Nerijus.Navickas@srb-intl.com) wrote:
>
>> I have done that, but server-side validator never calls my
>> function on server-side.
>>
>> ~nn
>>
>>
>> -----Original Message-----
>> From: Jeff Kyser [mailto:ktrails@comcast.net]
>> Sent: Wednesday, April 23, 2003 2:03 PM
>> To: Struts Users Mailing List
>> Subject: Re: own validator.
>>
>>
>> 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
>>
>>
>>
> ---------------------------------------------------------------------
>> 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
>
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message