This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes What Are the Causes for Validation Not Doing Anything? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "What Are the Causes for Validation Not Doing Anything?" Watch "What Are the Causes for Validation Not Doing Anything?" New topic
Author

What Are the Causes for Validation Not Doing Anything?

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
1. I have this plug-in by the very end of the
struts-config.xml file:

2. I have this action mapping in the struts-config.xml
file:

3. I have this <form-bean> inside the <form-beans> element in the struts-config.xml file:

4. I have the validation.xml file in the AppName/WEB-INF directory

4.1. I changed the beginning of the validation.xml file to
"http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd"

4.2 my validation.xml file code is shown below

The validation does not do anything. I intentionally left all text fields blank to submit the form. The Struts did not give me any warning regarding the text fields were not filled out.


[ September 22, 2004: Message edited by: JiaPei Jen ]
 
Don't get me started about those stupid light bulbs.
 
subject: What Are the Causes for Validation Not Doing Anything?
 
Similar Threads
Validation, problem with using action path instead of form name
LookupDispatch action with validator
Error using Struts Validator
validaion.xml and validaton-rules.xml file not calling
UnavailableException: Cannot load a validator resource from '/WEB-INF/