--- Brian McSweeney <[EMAIL PROTECTED]> wrote: > Hi Steve, > > >Have you looked at the struts-validator sample app? The 'types' > examples > >show most of the basic validations. If you've already looked at it, is > >there anything that would make it easier to understand? > > No I had not heard about the sample app. I looked again on the main > Struts page and in the validator section there are 3 resources: > > 1) A validating Two fields match by matt raible > (by the way - IMHO this method > /or a different implementation which does the same thing, would be VERY > helpful to be a part of the main validator package as it is such a > common > requirement) > > 2)DynaForms and the Validator - a PDF document > > 3) Validating user input - a PDF document > > Am I missing the link? Is it part of the struts bundle?
Yes, it comes with the standard Struts distro. David > > I think a link from the main validator page would be helpful as this is > where I went to initially find out how to use the validator. > > >requiredif is in 1.1. Do you mean validwhen? If so, that's back in the > >nightly build and will be in the next release. > > Cool. :-) > > > > -----Original Message----- > From: Steve Raeburn [mailto:[EMAIL PROTECTED] > Sent: 14 August 2003 15:47 > To: Struts Users Mailing List > Subject: RE: Struts Validator > > > -----Original Message----- > > From: Brian McSweeney [mailto:[EMAIL PROTECTED] > > Sent: August 14, 2003 6:29 AM > > To: 'Struts Users Mailing List' > > Subject: RE: Struts Validator > > > > > > +1 for it works for me too. > > Not knowing javascript well, using the validator allowed me > > to quickly do client side validation. > > > > +1 for it isn't so easy to use. I think a "REALLY" simple default app > > that shows exactly how each different field validation works would > > dramatically increase the use of the validator, which would in turn > > dramatically increase the quality of the validator. > > Have you looked at the struts-validator sample app? The 'types' examples > show most of the basic validations. If you've already looked at it, is > there > anything that would make it easier to understand? > > > > > Even a single jsp page for each field type and a submit button would > > be a help. I only really use it for required strings and emails for > > example. Even though I tried and failed to use required if > > functionality. It's > > a pity that this feature couldn't be included in the struts 1.1 > release. > > requiredif is in 1.1. Do you mean validwhen? If so, that's back in the > nightly build and will be in the next release. > > Steve > > > > > However, at any rate, saying it's absolutely crap is both wrong > > and not so nice IMHO. > > > > Brian > > > > > > -----Original Message----- > > From: Jerry Jalenak [mailto:[EMAIL PROTECTED] > > Sent: 14 August 2003 14:06 > > To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]' > > Subject: RE: Struts Validator > > > > +1 - Validator works. I started using it waaaay back in the pre-RC1 > > days. > > Everytime that Validator hasn't worked for me, I've found that it was > > due to > > a screw up on my part (usually something in the validation.xml file). > > Except for rare occasions, I haven't had to write a customized > validate > > method. When I do have to, I try to extend Validator so I can > continue > > to > > use the tool. > > > > +1 - Validator is not perfect. While I haven't found any major bugs > (at > > least ones that haven't already been reported), Validator does have > its > > quirks - you have got to get the validation.xml file right or else it > > just > > flat won't work. Also, since Validator relies on your > > ApplicationResources.properties file for its error messages, it may > > appear > > that Validator is not working, when in reality, it just can't find the > > message to return to the client. > > > > +1,000,000 - There is only Us. If not, then Micro$oft would be the > only > > choice for doing web development, and I'd have to find another career > > :-) > > > > Mark - I'll offer this again. I'll be more than happy to look over > your > > forms, struts-config.xml, validator-rules.xml, validation.xml, and > > properties files and see if I can figure out why you can't get > Validator > > working. Let me know. > > > > Jerry Jalenak > > Team Lead, Web Publishing > > LabOne, Inc. > > 10101 Renner Blvd. > > Lenexa, KS 66219 > > (913) 577-1496 > > > > [EMAIL PROTECTED] > > > > > > > -----Original Message----- > > > From: Steve Raeburn [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, August 13, 2003 7:30 PM > > > To: Struts Users Mailing List > > > Subject: RE: Struts Validator > > > > > > > > > Let me state the blindingly obvious: > > > > > > 1. Validator works. Other people seem to be able to use it. > > > 2. Validator is not perfect. Valid bug reports would help > > > make it better. > > > 3. This is a community project. There is no Us and Them, > > > only Us. And, for > > > better or worse, that includes you. > > > > > > Since you've not posted any bug reports about validator I can > > > only assume > > > that you are either (a) blowing hot air, or (b) incapable of > > > describing the > > > bugs you say you've found. If you aren't capable of making a > > > meaningful > > > contribution, please at least don't waste other people's time > > > with your > > > nonsense. > > > > > > I'm not going to spend any more time batting this back and > > > forth with you. > > > If you are prepared to provide constructive criticism and/or > > > help improve > > > Struts, you'll find many people willing to accept your help > > > and to offer > > > theirs in return. If not, well it's pretty easy to filter you out. > > > > > > Steve > > > > > > > -----Original Message----- > > > > From: Mark Galbreath [mailto:[EMAIL PROTECTED] > > > > Sent: August 13, 2003 3:17 PM > > > > To: 'Struts Users Mailing List'; [EMAIL PROTECTED] > > > > Subject: RE: Struts Validator > > > > > > > > > > > > Dave, > > > > > > > > My only complaint with the authors of validator is that (a) > > > they say it's > > > > really cheeky, but (b) a host of developers, including me, > > > have complaints > > > > about it. It just doesn't work within the framework > > > documented. The List > > > > is full of complaints and requests along these lines. You > > > can ignore me, > > > > but just dip into the List archive and see. I write my own > > > validator > > > > methods because I couldn't get Validator to work within the Struts > > > > framework; looking at the archive, there are hundreds more that > > > > could not do > > > > the same. > > > > > > > > I am not looking for a war here. All I ask is to get the > > > damn thing right > > > > before offering it as a release to our community. > > > > > > > > Mark > > > > > > > > -----Original Message----- > > > > From: David Graham [mailto:[EMAIL PROTECTED] > > > > Sent: Wednesday, August 13, 2003 5:45 PM > === message truncated === __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]