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 Form validation not working 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 "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
struts 2 validation and prevent double submit
problem in field validation
Struts2 very simple validation doesn't work
Adding more than one validation to form field
validation problem in ActionClass-validation.xml