File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Accessing action errors in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Accessing action errors in JSP" Watch "Accessing action errors in JSP" New topic

Accessing action errors in JSP

Andy Wilson
Ranch Hand

Joined: Jun 26, 2009
Posts: 32
I am trying to access the action errors within a JSP (using el) but don't know how to do this. I can test to see if any exist via:

<s:if test="hasActionErrors()">

but I want to then be able to iterate through the list of error messages and can't quite see how to.

Any help much appreciated.
David Newton

Joined: Sep 29, 2008
Posts: 12617

See the ValidationAware docs.
bryan nelson
Ranch Hand

Joined: Jun 16, 2003
Posts: 95
Can anyone provide some insight into the original question here without using a third party solution (such as open symphony that is referenced here)?


"...and the Truth will set you free."
jQuery in Action, 3rd edition
subject: Accessing action errors in JSP
It's not a secret anymore!