A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
Accessing action errors in JSP
Andy Wilson
Ranch Hand
Joined: Jun 26, 2009
Posts: 30
posted
Jul 28, 2009 08:46:14
0
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
I like...
posted
Jul 28, 2009 10:20:36
0
See the
ValidationAware docs
.
bryan nelson
Ranch Hand
Joined: Jun 16, 2003
Posts: 95
posted
Apr 28, 2011 13:28:57
0
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://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Accessing action errors in JSP
Similar Threads
how to know if has validation errors on jsp
fow to forward to an action from jsp ?
How to access selected values of dynamically generated multi select list on jsp from action method?
Function call inside struts tags
Struts Jsp Restrictions
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter