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.
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.
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
Thanks for the reply Marten.
I should rather rephrase my question thus: if I have a request mapping as follows:
What do I need in the jsp form in order for this method to be called?Code:@RequestMapping("/performSearch")
Will this suffice?
Or do I need this?Code:<form:form> ...
Regards,Code:<form:form action="performSearch"> ...
Julien.