Results 1 to 2 of 2

Thread: Multiple controllers for one request

  1. #1
    Join Date
    Nov 2011
    Posts
    4

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

    Thanks!

  2. #2
    Join Date
    Nov 2011
    Posts
    4

    Default

    I will try to use WebRequestInterceptor probably

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •