With Spring MVC, it's easy to express a concept like "A user is submitting the form if they use POST or if they include the 'isSubmit' parameter." You'd just extend SimpleFormController
and override the isFormSubmission
method.
However, Spring MVC now uses these neat annotations like @RequestMapping
to handle requests. @RequestMapping
has an obvious filter for whether somebody used a GET or a POST, but I don't see any inherent support for all of the useful logic SimpleFormController provided. Is it still available to me with annotations?