Re: Struts 1.2.7 custom validator problem

2007-11-05 Thread Paul Benedict
I wonder what the purpose is of returning false. On 10/30/07, John Doe <[EMAIL PROTECTED]> wrote: > > I've solved the problem. The only way to validate properly is to add an > error to the errors variable. Without this validator will think that > everything is OK even if you returned false in vali

Re: Struts 1.2.7 custom validator problem

2007-10-30 Thread John Doe
I've solved the problem. The only way to validate properly is to add an error to the errors variable. Without this validator will think that everything is OK even if you returned false in validate method. On 10/29/07, John Doe <[EMAIL PROTECTED]> wrote: > > No, there is no exception. > > On 10/28/

Re: Struts 1.2.7 custom validator problem

2007-10-29 Thread John Doe
No, there is no exception. On 10/28/07, Paul Benedict <[EMAIL PROTECTED]> wrote: > > I think validation can pass if an exception is thrown. Please check your > log > files that no error is occurring with your validation. > > Paul > -- Best regards, Bashmaкov Anton

Re: Struts 1.2.7 custom validator problem

2007-10-28 Thread Paul Benedict
I think validation can pass if an exception is thrown. Please check your log files that no error is occurring with your validation. Paul

Re: Struts 1.2.7 custom validator problem

2007-10-27 Thread John Doe
Yes. I have validation working correctly. Required and mask works good. And my validator method gets called and returns false, but I do not add any errors message is it necessary? On 10/26/07, Laurie Harper <[EMAIL PROTECTED]> wrote: > > John Doe wrote: > > Hi, > > I have Struts 1.2.7 application

Re: Struts 1.2.7 custom validator problem

2007-10-26 Thread Laurie Harper
John Doe wrote: Hi, I have Struts 1.2.7 application and I need to write custom validator for my form. I've wrote struts tutorial at http://struts.apache.org/1.2.7/userGuide/dev_validator.html and have tried to do the same. But my validator is not working. Here is my class method : public class

Struts 1.2.7 custom validator problem

2007-10-26 Thread John Doe
Hi, I have Struts 1.2.7 application and I need to write custom validator for my form. I've wrote struts tutorial at http://struts.apache.org/1.2.7/userGuide/dev_validator.html and have tried to do the same. But my validator is not working. Here is my class method : public class GroupIdValidator {