Announcement Announcement Module
No announcement yet.
Multiple controllers for one request Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?


  • #2
    I will try to use WebRequestInterceptor probably