aspose file tools*
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 JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "ActionError problem in Struts 2.0" Watch "ActionError problem in Struts 2.0" New topic
Author

ActionError problem in Struts 2.0

Vijay Chandran
Ranch Hand

Joined: Jan 07, 2007
Posts: 178
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.
Regards,
Vijay
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 ]

Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ActionError problem in Struts 2.0