Results 1 to 2 of 2

Thread: chaining controllers

  1. #1
    Join Date
    Aug 2005
    Posts
    2

    Default chaining controllers

    having looked at the javadocs and documentation and stopping short reading the spring codebase in detail, a question I'm having is looking for an appropriate design method of controller chaining.

    The context of the question is using a FormController in conjunction with commons validation, and then wanting to pass the request off to a more centralized application-specific controller for handing business-tier requests before moving forward to the view layer. It matters as the http form could exist on any html page of the webapp.

    I've not seen direct support for chaining controllers. I could call the extended Controller directly from the FormController, however that requires a try-catch and then I'm not sure if passing the exception up is the best solution. I can also have the FormController's SuccessView() forward to a bean mapping handled by the second controller.

    Architecturally, is there a desired way of implementing more than one controller for a specific request?

    thanks in advance,

    Mike Gleeson

  2. #2
    Join Date
    Aug 2004
    Location
    u.s.a
    Posts
    399

    Default

    There is support for forwards and redirects.

Similar Threads

  1. Replies: 4
    Last Post: Dec 17th, 2008, 01:47 PM
  2. Replies: 5
    Last Post: Aug 11th, 2005, 08:09 AM
  3. Spring MVC Component-like Controllers
    By harmen in forum Web
    Replies: 4
    Last Post: Aug 8th, 2005, 01:58 AM
  4. Chaining controllers with Srping MVC
    By jjcooldoc in forum Web
    Replies: 3
    Last Post: Jul 1st, 2005, 01:15 AM
  5. Portlet Form Controllers
    By johnalewis in forum Web
    Replies: 4
    Last Post: Mar 11th, 2005, 10:26 AM

Posting Permissions

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