CancellableFormController (Springs)

In Springs we have a CancellableFormController, which is used to cancel the form if clicked on the cancel button. My doubt what if it is a form which needs to be submitted as well as cancel functionality. As a class can extend only one class it extend either CancellableFormController  or the controller related to formSubmission(Dont remember the name). Do we have controllers in the form of interfaces so we can implement multiple controllers at the same time.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CancellableFormController already supports form submission
It is a subclass of SimpleFormController and provides all the functionality of that class

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Sathish David Kumar NArchitectCommented:
CancellableFormController extends SimpleFormController  (it objects mention above)

its correct , so we can use what are all function SimpleFormController  we will use in CancellableFormController

CancellableFormController check the request object that have parameter vaule , If the identidy that is cancelable parameter means
it will pass the cancelView otherwise its take it as from view
Sathish David Kumar NArchitectCommented:

checking function is  isCancelRequest ,

its return true means cancelView
false means formview
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java EE

From novice to tech pro — start learning today.