OW2 Consortium
Search OW2 Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | exoplatform List | Febuary 2008 Index

<--  Date Index  --> <--  Thread Index  -->

[exoplatform] Request parameter / Ajax Call


Hello,

We try to send parameters in an ajax call (GET method) that could be retrieved in the serveRessource method of the portlet.

We use a RessourceRequest.getParameter() in the serveRessource to retrieve the params.

This seems to work correctly in the portlet container (beta4 and rc2) but not in the WebOS platform (ultimateProduct version 23239) ? is this normal ? Is there something to change to make it work ?

Ajax Code :

function asynchGetXMLHttpRequestToPortlet() {
  var requestURL = document.getElementById("resourceURL").value;
  portletReq = getHttpRequest();
  if (portletReq === false) {
    alert("Exception: I could not find the XMLHttpRequest");
  }
  portletReq.>  portletReq.open('GET', requestURL+"&test=true&test2=false", true);
  portletReq.send(null);
}

Java Code :

public void serveResource(ResourceRequest request, ResourceResponse response) throws PortletException, IOException {
           System.out.println("Was in serveResource");
           String test=request.getParameter("test");
}

Bruno



<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 2006-2007, OW2 Consortium | contact | webmaster.