Maybe this is supposed to not work, but at least I\'d like to understand why then. I am passing a simple val=somevalue in the PUT
body but spring sends back a <
I don't have right solution for you, but in your case I try following:
form:form method="PUT"
HiddenHttpMethodFilter
in web.xml
If this will works, then
type
from PUT
to POST
in ajax callform:form
tag (something like _method
)In other words, as I understand Spring emulates PUT
based on simple POST
with special parameter. Just send to him what he wants.
See also: http://stsmedia.net/spring-finance-part-2-spring-mvc-spring-30-rest-integration/ and related code examples there: http://code.google.com/p/spring-finance-manager/source/browse
HTH