myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Kienenberger" <mkien...@gmail.com>
Subject Re: jsessionid added to resources in myfaces SVN current?
Date Sun, 19 Mar 2006 00:09:08 GMT
I recall having to fix this problem of an appended jsessionid for
Tomahawk AddResource.

I believe the working code we settled on was this:

        String pathInfo = request.getPathInfo();
        String uri = request.getContextPath() + request.getServletPath()
                + (pathInfo == null ? "" : pathInfo);


On 3/18/06, Andrew Robinson <andrew.rw.robinson@gmail.com> wrote:
> I have been using the following code to get the right URL for an image
> that is being produced by my servlet:
>
> src = viewHandler.getResourceURL(facesContext, url);
> enc = (src == null) ? null : extCtx.encodeResourceURL(src);
> return enc;
>
> In past versions of myfaces this was working fine:
>
> /context/path/image.png
>
> Against the lastest SVN I am getting:
>
> /context/path/image.png;jsessionid=BLAH
>
> This is breaking my servlet as I am looking at the path to get the
> image to create. First of all ";" isn't a valid query string
> separator, is it? Secondly, why is the session ID being added to my
> resources? I can understand action URLs, but not resources URLs.
>
> Is this a new bug?
>

Mime
View raw message