10-23-2011 10:00 PM
   $.ajax({
         url : Alfresco.constants.PROXY_URI + "aegis/demo/javabacked",
         type : "POST",
         data : {"test":"aaa","test1":"bbb"},
         dataType : "json",
         contentType : "application/json",
         success : function(response) {
            alert("success");
         },
         error : function() {
            alert("error");
         }
   });
   protected Map<String, Object> executeImpl(WebScriptRequest req, Status status, Cache cache) {
      
      Map<String, Object> model = new HashMap<String, Object>(8, 1.0f);
      
      System.out.println(">>>>>>>>>>>>test = " + req.getParameter("test"));
      System.out.println(">>>>>>>>>>>>test1 = " + req.getParameter("test1"));
      
      return model;
   }
10-24-2011 05:11 AM
10-25-2011 01:55 AM
I suppose it's "dataObj:" instead of "data:" in the AJAX invocation….
HTH
Gyro
10-25-2011 04:25 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.