Prakash, Thanks for the tip about looking at the tests and for the .jar file. I'll check both out. I too have been able to get the validator framework to work outside of Struts but only by including TestValidator and TestTypeValidator along with the commons-validator.jar file. Somehow this doesn't seem right to me. Anyway, thanks for your help!
Regards, Phil Seay mailto:[EMAIL PROTECTED] -----Original Message----- From: Malani, Prakash [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 7:30 PM To: 'Jakarta Commons Users List' Cc: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'; Bartssandbox (E-mail) Subject: RE: [validator]Confusion about TestValidator and TestTypeValidator Hi, How are you doing? > Good evening! > > I'm a new user attempting to use the Validator framework outside of > Struts. I've looked at all the examples in the validator-1.0.1-src Yes... We have been successfully using it outside of Struts... > download and see that all the validator-*.xml files refer to > TestValidator and TestTypeValidator. Neither of these classes is in > the commons-validator.jar that was in the > validator-1.0.1.zip file. I believe it would be possible to use the The trick I found was the downloading the source. Then, I not only looked in the examples, but also in the tests. I found good examples there... > GenericValidator and GenericTypeValidator instead except that I can't > see how to set up a required rule using the isBlankOrNull method. How > should I proceed? Are TestValidator and TestTypeValidator in some > other .jar file? Shouldn't there be a isNotBlankOrNull method in > GenericValidator? I really must have the ability to set up a required > rule. Many thanks! I have created a simple extension to validator that makes it pretty straight forward to use. It is available here: http://groups.yahoo.com/group/bartssandbox/files/validator-ext.jar Check it out:) > > Regards, > Phil Seay > mailto:[EMAIL PROTECTED] Best regards... ----- Java, OOAD, UML, Design Patterns, EJBs, Struts, JSPs, Servlets, JMS, XP (http://groups.yahoo.com/group/bartssandbox) J2EE (http://www.cact.csupomona.edu/oncampus/programs/cert/j2ee/default.asp) Java (http://www.cact.csupomona.edu/oncampus/programs/cert/java/Default.asp) UML (http://www.cact.csupomona.edu/oncampus/programs/cert/uml/default.asp) eBuilt, Inc. (http://www.eBuilt.com) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
