File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes ActionError problem in Struts 2.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "ActionError problem in Struts 2.0" Watch "ActionError problem in Struts 2.0" New topic

ActionError problem in Struts 2.0

Vijay Chandran
Ranch Hand

Joined: Jan 07, 2007
Posts: 186

Dear friends,

I am using Struts Version 2.0. ActionError is not supported in this version.

Could you help me giving an alternative to use any other class which replaces ActionError.

Thanks in advance.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
In Struts 2, you no longer use a special class to represent an error. Errors are just Strings. If you want your Action to return error messages to the JSP, have it implement the interface ValidationAware or have it extend ActionSupport or ValidationAwareSupport. See the javadoc for more information.
[ September 18, 2007: Message edited by: Merrill Higginson ]

Consultant, Sima Solutions
I agree. Here's the link:
subject: ActionError problem in Struts 2.0
It's not a secret anymore!