I'm a Struts newb and am trying to get up to speed on Struts 2.

The scant documentation is throwing me a bit; I'm trying to do
everything annotation-based, and for Validation, it seems to be simply
not working at all.

Per the docs, I have tagged my action class with @Validator and tagged
my setXXX method with @RequiredFieldValidator.

My form's JSP contains <s:fielderror><s:param>XXX</s:param></s:fielderror>.

When I submit the form with no value for XXX, my execute method
executes as it would before I added the validation stuff.

I would really like to avoid XML files, but it seems that if I'm using
annotations, everything needs to be done that way.

Any ideas on where to look?

Dave

I've read: http://struts.apache.org/2.x/docs/validation-annotation.html
and some other resources, none of which are clear to me.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to