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 Groovy Fundamentals video training course this week in the Groovy 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
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: ActionError problem in Struts 2.0