Re: Checkbox selection problem

2007-11-20 Thread John Doe
I've found solution. You can avoid this problem if you will add hidden field with the same name as the checkbox. Like this : * * On Nov 20, 2007 11:12 AM, John Doe <[EMAIL PROTECTED]> wrote: > Solution still needed. Forgot to say, I'm using struts 1.2.7 > > > On

Re: Checkbox selection problem

2007-11-20 Thread John Doe
Solution still needed. Forgot to say, I'm using struts 1.2.7 On Nov 19, 2007 11:08 AM, John Doe <[EMAIL PROTECTED]> wrote: > Hi, > I have a form declared in my struts config : > > * > > > >

Checkbox selection problem

2007-11-19 Thread John Doe
Hi, I have a form declared in my struts config : * * and here is my JSP code : * ... * and my code in action *log.info("IS processed : " + dynaForm.get(Constants.FormFields.IS_PROCESSED ));* I always have null value first time I submit

Re: Need Help Struts 2.0.8

2007-11-01 Thread John Doe
The simplest way (if I'have understood your problem right) is to create 10 variables in your action class (with getters and setters of course) and on the form. So it'll be private String firstName1; private String firstName2; private String firstName3; ... private String firstName10; in the actio

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 except

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-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 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 {