url = prefix + resp.encodeURL(encodeParams(req, url));
url = resp.encodeURL(encodeParams(req, prefix + url));
    public static String encodeURL(HttpServletRequest req,                                   HttpServletResponse resp,                                   String url) {        if (s_log.isDebugEnabled()) {            s_log.debug("encodeURL: before: " + url);        }        if (url.startsWith("/")) {            String prefix = DispatcherHelper.getDispatcherServletPath();            url = prefix + resp.encodeURL(encodeParams(req, url));        } else {            url = resp.encodeURL(encodeParams(req, url));        }        if (s_log.isDebugEnabled()) {            s_log.debug("encodeURL:  after: " + url);        }        return url;    }