This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
I intentionally left every single field blank and radio buttons not selected, and then submit the form with validation check. All the errors pass through the validation check and the next page gets displayed.
I have commons-validator.jar (6/29/2003) in the AppName/WEB-INF/lib directory. And I have the validation.xml and validator-rules.xml in my AppName/WEB-INF directory.
I have a form like:
My action mapping in the struts-config.xml looks like:
The messageForm in the <form-beans> element of the struts-config.xml looks like: <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
In the validation.xml: <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN" "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd"> and, inside the <formset> element, I have: