AnsweredAssumed Answered

Unable to read values sent by Alfresco.util.Ajax.request

Question asked by naveenalfresco on Mar 8, 2012
Latest reply on Apr 28, 2012 by arnoldschrijver
I am unable to read a set of values in java sent through "Alfresco.util.Ajax.request" by "POST"  method.

sample request code  :
                    url: Alfresco.constants.PROXY_URI + "atlantis/sendValue",
                    method: "POST",
                     Value : "val"

sample java code :

public class ClassName extends AbstractWebScript {

   public void execute(WebScriptRequest req, WebScriptResponse res){
         req.getParameter("Value ");


It works well if i make use of "GET" method because the values get appended to the url like this "/alfresco/s/atlantis/sendValue?Value ="val"" and  req.getParameter("Value ") will read the value as "val" from the url but in-case of "POST" method  the value will not be appended to the url and req.getParameter("Value ") ends up with a null value. I would like to know how to fetch the values.