Is it possible to have one controller to handle multiple forms in spring?
For example, i have 3 steps registration that map with “/register” url. Is it possible to have only one RegisterController that can handle all registration’s steps form submit?
That depends on the style of controllers you’re using. If you use Spring 2.0-style form controllers (e.g. a subclass of
SimpleFormControllerorAbstractFormController), then you might have some difficulty. If, however, you’re using Spring 2.5-style annotated@Controllers, then these are very flexible, and you should be able to handle pretty much any cmplexity you desire in one controller class.