• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Cancel problem in struts

 
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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::

 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic