doSubmitAction(Object command) is a simple submit callback for you to perform an action and then go to the success view with the given command. There is no need to worry about ModelAndView.
with onSubmit(Object command), you need to return ModelAndView, so it is more flexible. You could customise the success view if you wish, for example. You could also pass more objects to the model for your display (eg.
jsp).