Are you sure that calling super.validate() from my action's implementation of validate() will invoke the XML/annotation validations?

I'm extending ActionSupport, so super.validate() would call ActionsSupport's validate(), which is just an empty method ......

But I think you understand what I'm trying to do: I need the errors from the ValidationAware interface to get set based on my actions @VisitorFieldValidator annotation.

One of the interceptors in the defaultStack must be analyzing my action's annotations and then setting the appropriate error messages, I just can't figure out which one it is :-(

Thanks!
Steven


Dave Newton wrote:
Steven Hansen wrote:
Is there anyway to manually check possible validation errors on this action as if it were called by the Validation interceptor?

The previous answer was partially correct, depending on what you're actually trying to do. If you implement a validate() method you can call super.validate() which will run XML/annotation validations. From there you can call hasFieldErrors()/hasActionErrors()/etc. to determine if there were any.

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to