File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Accessing action errors in JSP" Watch "Accessing action errors in JSP" New topic
Author

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()">
...
</s:if>

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
Author
Rancher

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)?

Thanks!


"...and the Truth will set you free."
 
I agree. Here's the link: http://aspose.com/file-tools
 
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