This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts 2 validation not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 validation not working" Watch "Struts 2 validation not working" New topic

Struts 2 validation not working

mike stewart

Joined: Jun 22, 2011
Posts: 6
I have searched everywhere on google and in these forums and can't figure out why this is not working. Here are my relavant files. I have left some things out but I don't believe I left out anything important. Any help would be greatly appreciated. Thank you in advance and sorry for the long post.


listTestGroup.jsp //there are getters and setters for all varilables even though they are not visable.


Jesus Mireles
Ranch Hand

Joined: Mar 10, 2010
Posts: 122

I've never really needed to use my own validator.xml ... but your not using anything that couldnt be used with an annotation tag on the setters:

I agree. Here's the link:
subject: Struts 2 validation not working