I\'m trying to use RequestMethod.PUT
and RequestMethod.DELETE
in Spring MVC controller (version 3.0.2). There are three methods mapped with a URL i
You should change your config.
<servlet-name>/*</servlet-name>
to
<servlet-name>[dispatch servlet name]</servlet-name>
Most browsers do not support action=PUT
in HTML forms. They will just send POST
requests instead. The HiddenHttpMethodFilter will help you get around the problem, but you have to include a hidden field _method=PUT
in your form. If you use the spring:form taglib this will be done automatically for you, but your example seems to use plain HTML.
The NoSuchBeanDefinitionException
is most probably an unrelated problem.