I'm new to Struts2. When I use Struts2 validator annotations, does the error message always get displayed next to the invalid field name? I want to display the error message only in the place where I specify the <s:fielderror>. I've tried to specify the fieldName attribute in the annotation, but that doesn't seem to work.
My Action class looks like this.
My
JSP file looks like this
My UI theme is XHTML.
I know I can use perform the validation inside the validate() method and call addFieldError(), but I want to use annotations. Is it possible? Thanks.