Skip to content

Support for PUT and DELETE in spring:form tag [SPR-5267] #9940

Closed
@spring-projects-issues

Description

@spring-projects-issues

Arjen Poutsma opened SPR-5267 and commented

Browsers only support GET and POST in HTML forms. A common technique to use the other HTTP methods (PUT and DELETE) - used by Prototype and RubyOnRails, for instance - is to use POST instead, and pass an additional request parameter (typically _method) with the desired HTTP method.

We should support this mechanism in Spring MVC. This involves two parts:

  • Adding support for PUT and DELETE in the spring:form tag.
  • Support the hidden _method parameter in on server side infrastructure, either through a Servlet filter, or more deeply embedded in the DispatcherServlet infrastructure.

This issue is a sub-task of #9097

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: webIssues in web modules (web, webmvc, webflux, websocket)type: taskA general task

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions