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
You could do that, yes. Alternatively, don't use true submit buttons. Instead, use vanilla HTML buttons, with attached javascript handlers which later the form's target, and then programmatically submit the form.
Which one is "cleaner" depends on your point of view.