0 Replies Latest reply on Dec 16, 2007 8:42 AM by pmn92

    Ajax Url

      The ajax feature is not addressing much of it but anyway, the question is how to get an URL that is not pointing at a window or page but at the server itself, allowing to build a servlet url to whatever context is needed.

      The only way I found is to compute it

      {
      PortalNodeURL url = response.createRenderURL(request.getPortalNode());
      url.setRelative(false);
      String portalURL= url.toString();
      String context = request.getContextPath();
      int contextPathIndex = portalURL.indexOf(context);
      return portalURL.substring(0, contextPathIndex);
      }