views:

27

answers:

1

I implemented some actions in a Struts2+J2EE environment. I'd like to validate inputs with the struts validation framework: my package extends struts-default, my action extends Action Support and I put the xml file (MyActionClassName-validations.xml) in the same folder of my action. It doesn't work!
Could I do something to check if validation framework works at all?
can anybody help me?

+2  A: 

As far as i know, the file should be named MyActionClassName-validation.xml (without the trailing s in "validation"). Also check that this xml file is deployed correctly with your application.

gpeche