Re: Problem with Validation of Struts DynaValidatorForm

2005-09-11 Thread Weng Kong Lee
Hi Laurie, Thanks for the suggestion! After digging into the Tomcat console logs, I've finally found out what the problem is. Seems like my copy of validation-rules.xml was corrupted. The arguments for the validateRequired method were wrong. Corrected that and now it works fine :-) Thanks for th

Re: Problem with Validation of Struts DynaValidatorForm

2005-09-11 Thread Laurie Harper
You probably need your form to be declared as type org.apache.struts.action.DynaActionForm (rather than DynaValidatorForm). The difference between their behaviour is a little subtle so it's easy to get them mixed up. Try changing it and see if it works. L. Weng Kong Lee wrote: Hi all, I've j

Problem with Validation of Struts DynaValidatorForm

2005-09-10 Thread Weng Kong Lee
Hi all, I've just started exploring the use of Struts DynaValidatorForms. I've tried to set-up a very simple login form with a username and password fields, where both are required. Here's the relevant details: 1. struts-config.xml The application message resource bundle has been configured with t