Announcement Announcement Module
Collapse
No announcement yet.
How does Spring MVC controllers perform method resolution when a form is submitted? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How does Spring MVC controllers perform method resolution when a form is submitted?

    Hello,

    I have a Spring MVC form in jsp and I am having trouble getting the controller method invoked.

    Can someone please explain to me the mechanism whereby Spring MVC performs controller method execution?

    Regards,

    J.

  • #2
    There is no difference between a GET and a POST (assuming you are using annotation based controllers).

    Comment


    • #3
      Thanks for the reply Marten.
      I should rather rephrase my question thus: if I have a request mapping as follows:
      Code:
      @RequestMapping("/performSearch")
      What do I need in the jsp form in order for this method to be called?

      Will this suffice?
      Code:
      <form:form>
      ...
      Or do I need this?
      Code:
      <form:form action="performSearch">
      ...
      Regards,
      Julien.

      Comment

      Working...
      X