Results 1 to 2 of 2

Thread: Controller to Form Navigation?

  1. #1
    Join Date
    Aug 2004
    Location
    San Francisco, CA
    Posts
    66

    Default Controller to Form Navigation?

    Greetings,

    I'm trying to work out some problems with navigating from one controller to another. Here's my situation.

    /confirmRequest maps to a form

    A request comes into a Controller, and that controller does one of two things:

    1) returns a ModelAndView where the view is a JstlView and the url is a JSP.
    2) returns a ModelAndView where the view is really a form.

    The first one works great, but the second keeps skipping the formView, and jumping straight to the successView. That is, I never see the jsp which renders the form to be completed... it just goes strraight to the Form's onSubmit(...) method.

    In a controller, what is the correct manner to 'forward' to another controller, in this case, a SimpleAbstractForm. RedirectView? InternalResourceView? Something else?

    /confirmRetreivalRequest is url mapped to the Form using a SimpleUrlHandlerMapping.

    What am I doing wrong?

    Thanks!
    Christian

  2. #2
    Join Date
    Aug 2004
    Location
    Istanbul, Turkey
    Posts
    6

    Default

    Hi,

    I think you need to return a redirectView which is like aform.htm (not a jsp like in jstlView). And do not forget to assign aform.htm to the other controller.

    --
    Lemi Orhan Ergin

Similar Threads

  1. Replies: 4
    Last Post: Sep 1st, 2010, 01:38 AM
  2. Replies: 3
    Last Post: Jun 8th, 2010, 03:27 AM
  3. Replies: 6
    Last Post: Jul 20th, 2007, 05:56 AM
  4. Replies: 0
    Last Post: Jun 10th, 2005, 08:22 AM
  5. Replies: 2
    Last Post: Sep 14th, 2004, 09:58 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
  •