Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cancel problem in struts

 
Micheal John
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why I am getting this error when I am clikcing the cancel button in the form.

I am using as follows:

<html:cancel/>

Whether I have to configure action mapping for cancel button also. Struts don't have any in-built cancelling facility?

Error I am getting::

 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Struts versions 1.2.8 and above you must specify cancellable="true" in your action mapping to enable the cancel button. In a normal action, you can simply call isCancelled(request) in order to determine whether the cancel button was pressed or not. If your action is a subclass of DispatchAction you must code a cancelled method in the Action class.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic