Results 1 to 1 of 1

Thread: Wrong request flow with SimpleFormController

  1. #1
    Join Date
    Jun 2007
    Location
    Oslo, Norway
    Posts
    153

    Default Wrong request flow with SimpleFormController

    A controller of mine has a strange behaviour. After the execution of showForm the web page is rendered, as it should. When the form submits first the formBackingObject method is called, but then the showForm is called again, and not the submit method.

    Why is not the submit method called instead?

    The first request is called by new ModelAndView(new RedirectView("MyController")) from my FrontController and the second is called by form action="contextPath/customer/MyController" and method="post".

    Edit: I found out that it called showForm again because it had errors in the form. I should have started debugging before posting this and not after....
    Last edited by DJViking; Feb 24th, 2009 at 07: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
  •