Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 94728 invoked from network); 23 Apr 2003 18:56:17 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 23 Apr 2003 18:56:17 -0000 Received: (qmail 16699 invoked by uid 97); 23 Apr 2003 18:58:18 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@nagoya.betaversion.org Received: (qmail 16692 invoked from network); 23 Apr 2003 18:58:17 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 23 Apr 2003 18:58:17 -0000 Received: (qmail 92821 invoked by uid 500); 23 Apr 2003 18:55:54 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 92810 invoked from network); 23 Apr 2003 18:55:54 -0000 Received: from smtp-out.comcast.net (24.153.64.110) by daedalus.apache.org with SMTP; 23 Apr 2003 18:55:54 -0000 Received: from comcast.net (pcp01530118pcs.huntsv01.al.comcast.net [68.62.194.99]) by mtaout10.icomcast.net (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with ESMTP id <0HDT007CB8FI4W@mtaout10.icomcast.net> for struts-user@jakarta.apache.org; Wed, 23 Apr 2003 14:52:31 -0400 (EDT) Date: Wed, 23 Apr 2003 13:52:30 -0500 From: Jeff Kyser Subject: Re: own validator. In-reply-to: <9AA5AFDA9C12D248A5CC0516A1B4B059092899@home.srb-intl.com> To: Struts Users Mailing List Message-id: MIME-version: 1.0 X-Mailer: Apple Mail (2.552) Content-type: text/plain; delsp=yes; charset=US-ASCII; format=flowed Content-transfer-encoding: 7BIT X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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: > > > property="pathnames" > value="/WEB-INF/validator-rules.xml,/WEB-INF/my-roolz.xml,/WEB- > INF/validation.xml"/> > > > 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: >> >> className="org.apache.struts.validator.ValidatorPlugIn"> >> > value="/WEB-INF/validator-rules.xml, >> > /WEB-INF/validator-custom-rules.xml, >> /WEB-INF/validation.xml"> >> >> >> >> -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