Hiddenhttpmethodfilter/httpputformcontentfilter
Hiddenhttpmethodfilter:hiddenhttpmethodfilter must act in front of dispatcher
<filter> <filter-name>hiddenhttpmethodfilter</filter-name > <filter-class> Org.springframework.web.filter.hiddenhttpmethodfilter</filter-class> </filter > <filter-mapping> <filter-name> hiddenhttpmethodfilter</filter-name> <servlet-name>spring</ servlet-name> </filter-mapping> <servlet> < Servlet-name>spring</servlet-name> <servlet-class> org.springframework.web.servlet.dispatcherservlet</servlet-class> <init-param> <param-name>contextconfiglocation</param-name> <param-value>classpath: dispatcher.xml</param-value> </init-param> </servlet> < Servlet-mapping> <servlet-name>spring</servlet-name> <url-pattern>*.html </url-pattern> </servlet-mapping>
<form action= "..." method= "post" > <input type= "hidden" name= "_method" value= "put"/> ... </form>
Httpputformcontentfilter:
<filter> <filter-name>httpPutFormcontentFilter</filter-name> <filter-class>org.springfra Mework.web.filter.httpputformcontentfilter</filter-class> </filter> <filter-mapping> < Filter-name>httpputformcontentfilter</filter-name> <url-pattern>/*</url-pattern> </ Filter-mapping>
<form action= "" method= "put" enctype= "application/x-www-form-urlencoded" > ... </form>
How the Web app receives the put configuration