File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
jQuery in Action, 3rd edition