开发者

struts 2 validation don't work, why?

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-val开发者_StackOverflow社区idations.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?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜