Meaningless Drivel is fun!*
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 Android Security Essentials Live Lessons this week in the Android 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."
I agree. Here's the link:
subject: Accessing action errors in JSP
Similar Threads
Struts Jsp Restrictions
how to know if has validation errors on jsp
How to access selected values of dynamically generated multi select list on jsp from action method?
fow to forward to an action from jsp ?
Function call inside struts tags