This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes Form validation not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Form validation not working" Watch "Form validation not working" New topic
Author

Form validation not working

Shobb Bob
Greenhorn

Joined: Dec 18, 2008
Posts: 4
Hello

I am trying to get my form to validate but everytime I press the submit button it returns error messages for all the input fields even if some of them have been filled in. See my code below:

form.jsp


actionClass-validation.xml


struts.xml

[ December 18, 2008: Message edited by: Shobb Bob ]
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Do you have the appropriate action properties?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Form validation not working
 
Similar Threads
problem in field validation
struts 2 validation and prevent double submit
Adding more than one validation to form field
Struts2 very simple validation doesn't work
validation problem in ActionClass-validation.xml