views:

39

answers:

1

I'm using simple theme in my struts2 application. In my action's validate() method, if i add validation error messages using addFieldError(fieldName, message), the error message is not showing up in my view page. I guess this is because I use the simple theme.

So, how do I show struts2 validation errors in my screen?

A: 

Got the answer: it's using <s:fieldError/> tag in my JSP file. :)

Veera