Well, it's working. I didn't put the form-validation tags around the formset
tags in the validator.xml. A *stupid* mistake and after all the frollocking
around the struts source code, it took the Struts console to make me realize
it. Of course, some kind of error message would have been nice, but
Your login.jsp seems to be missing the form and fields. Do you have your
html:javascript formName=UserForm/ in it so you get the validation
code?
Does your login page form also set the html:form onsubmit=return
validateUserForm(this) ?
I don't want to use Javascript. I just want a list at
Still problems. I have used the debugger to step through the chain of
events. In org.apache.commons.validator.Validator in the validate method at
line 577, it returns null for the form. As far as I can see, this means that
it doesn't get any validation rules for the form from the framework. I also
: M.Schipperheyn [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 23, 2003 5:29 PM
To: [EMAIL PROTECTED]
Subject: RE: DynaValidator can't get validation to work
Still problems. I have used the debugger to step through the
chain of events. In org.apache.commons.validator.Validator
Your login.jsp seems to be missing the form and fields. Do you have your
html:javascript formName=UserForm/ in it so you get the validation code?
Does your login page form also set the html:form onsubmit=return
validateUserForm(this) ?
Regards,
David
-Original Message-
From:
5 matches
Mail list logo