Sorry, I know why the jsessionid is there, that's not the
problem. I have my .gif files being served by apache, so they
really are in /images/ directory, not /contextpath/images/ 
directory. So the images are not found. I want to be able to
have the resulting img tag be
<img src="/images/myimage.gif" />
(or <img src="/images/myimage.gif;jsessionid=XXXXXXXXXXXXXXXXXXXXXX" />)
I can't use
<h:graphicImage url="images/myimage.gif" />

-----Original Message-----
From: Andrew Robinson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 04, 2006 9:42 PM
To: MyFaces Discussion
Subject: Re: context path in <h:graphicImage>

This problem has been discussed on this list.

Check out the archives for the subjects:
mailto outputLink with session id problem jsessionid added to resources in
myfaces SVN current?

Basically the problem is that the client doesn't support cookies or there is
no active cookie. It is a "feature" of the servlet container and JSF uses
the functionality that involves that "feature".

Why the servlet spec chose ";jsessionid" instead of "?jessionid" is beyond
me.

-Andrew

On 4/4/06, Lance Frohman <[EMAIL PROTECTED]> wrote:
> When I use an <h:graphicImage url="/images/myimage.gif" /> the 
> resulting html has the context path added to the beginning:
>
> <img
> src="/contextpath/images/myimage.gif;jsessionid=FC8DCE7CCC9D6174FB47A3
> CC5183
> 11FC" />
>
> Is there any way to prevent this?
>
> Thanks,
> Lance
>
>

Reply via email to