I can't get parameter from my PUT REST request in Webengine
I create the following form (jquery change it as ajax request and do the put request) :
<form action="/nuxeo/site/jersey-breaker/QueryFromJersey" method="put">
Value: <input type="text" name="value" /><br />
<input type="submit" value="Submit" />
</form>
And I try to get my parameters with JAXRS:
@PUT
public Object doPut(@QueryParam("value") String value) {
return getView("result").arg("value", value);
}
or
@PUT
public Object doPut() {
String value = (String) ctx.getRequest().getParameter("value");
return getView("result").arg("value", value);
}
I have value returned as null !!!
0 votes
1 answers
2210 views
I create a JIRA ticket with the answer on it:
https://jira.nuxeo.com/browse/NXP-8778
Hope this will help a guy like me disturbed a time.