Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing action errors in JSP

 
Andy Wilson
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See the ValidationAware docs.
 
bryan nelson
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic