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

    Ajax Url

    pmn92 Novice

      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());
      String portalURL= url.toString();
      String context = request.getContextPath();
      int contextPathIndex = portalURL.indexOf(context);
      return portalURL.substring(0, contextPathIndex);