I have a a form and I\'d like a next and back button inside it. What is the cleanest way to do this in spring mvc? Just give the input type submit a name and value and check for
If you use Spring 3, you can distinguish between controller methods using params attribute:
params
.
@RequestMapping(..., params = "next") public ModelAndView next(...) { ... } @RequestMapping(..., params = "back") public ModelAndView back(...) { ... }