Nov 18th, 2012, 12:10 PM
Multiple controllers for one request
I need to show output of several controllers on one page.
* Menu controller: adds "menuItems" collection to the model
* Banner controller: adds "banner" to the model
* ListItems controller: the "main" one: it adds all other data to display
My view (I use xslt) knows about model and works with it.
My question is how to call 3 controllers for one request and combine their output to the one model.
I do not want to use inheritance here (that smells). I do not want to use interceptors because they are low-level and I want to work with mapped parameters instead of request and response.
How that could be implemented in spring MVC?
Nov 18th, 2012, 12:53 PM
I will try to use WebRequestInterceptor probably