For Struts validation you need to do the following things.
1. Create a Form by extending ValidatorForm. 2. Should have validation-rules.xml and validation.xml files in WEB-INF folder. 3. JSP which uses the form. 4. An action mapping entry with attribute validate=true, in struts-config file. 5. A plug in for validation file in struts-config file.
Originally posted by Subha Rangu: You should explicitly specify the validate="true" in struts-config.xml file. Other wise, it takes default value which might be "false". Try it and let me know if it works.
You're right. I never rely on the defaults and now you know why - I can never remember which is what!
A good workman is known by his tools.
posted 14 years ago
same here mark...i always try to be as explicit as possible, but still fall into the default pit every so often simply because there are so many attributes (and many that are alike) for the various tags.
-/a<br />certified slacker...yes, my last name is 'do' - <a href="http://www.luckycouple.com" target="_blank" rel="nofollow">luckycouple.com</a>