Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ActionError problem in Struts 2.0

 
Vijay Chandran
Ranch Hand
Posts: 186
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic