cancel
Showing results for 
Search instead for 
Did you mean: 

I can't get parameter from my PUT REST request in Webengine

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

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 !!!

1 ACCEPTED ANSWER

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

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.

View answer in original post

1 REPLY 1

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

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.