Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-8778

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Not A Bug
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: WebEngine

      Description

      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 return as null !!!

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bjalon Benjamin Jalon
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: