How to print a specific actionerror message with Struts2 validation?

Posted by FarmBoy on Stack Overflow See other posts from Stack Overflow or by FarmBoy
Published on 2010-04-02T13:49:40Z Indexed on 2010/04/02 13:53 UTC
Read the original article Hit count: 580

Filed under:
|
|
|

When using Struts2 validation, when you put the <s:actionerror> tag in your JSP, the default behavior is to display all the action errors at that point in the page.

Is there a way to display only specific error messages at that point? For example, in the case of fielderror one only needs to add the fieldName attribute. Is there an attribute of actionerror that accomplishes similar behavior?

© Stack Overflow or respective owner

Related posts about struts2

Related posts about struts-validation