Results 1 to 3 of 3

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

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Posts
    177

    Default 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. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,631

    Default

    There is no difference between a GET and a POST (assuming you are using annotation based controllers).
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Nov 2007
    Posts
    177

    Default

    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.

Tags for this Thread

Posting Permissions

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