Hi Kris, I don't know - I didn't try hitting the page again. I'll give it a try and see.
I was surprised to see it, because I don't have any session scope variables in the page. I don't think I should have a session open. I'm using Tomcat 4.1.24 as the server. I'll try your <c:out> suggestion and see if that helps. Thanks very much. - MOD --- Kris Schneider <[EMAIL PROTECTED]> wrote: > The next time you hit the page it works though, > right? If you're tracking > sessions via cookies, subsequent responses won't > need to do URL rewriting. It > actually looks like it's a server bug. Hitting > > http://www.sun.com/im/sun_logo.gif;jsessionid=foo > > works just fine (SunONE WebServer 6.0), whereas > hitting > > http://www.apache.org/images/asf_logo_wide.gif;jsessionid=foo > > results in a 404 (Apache/2.0.48-dev (Unix)). Same > here ;-) (Microsoft-IIS/6.0) > > http://www.microsoft.com/homepage/gif/bnr-microsoft.gif;jsessionid=foo > > You might try something like: > > <body background="<c:out > value="${pageContext.request.contextPath}/images/gray.jpg"/>"> > > Quoting Michael Duffy <[EMAIL PROTECTED]>: > > > > > I'm following the recommendations laid out by > Shawn > > Bayern in "JSTL In Action", but I've run into a > snag. > > > > On page 136, Shawn recommends using the <c:url> > tag > > for referring to a directory named images in a Web > > application: > > > > <body background="<c:url > value='/images/gray.jpg'/>"> > > <!-- other HTML stuff in here > > </body> > > > > When I ask Tomcat to send this page, the > background is > > not there. When I View Source to look at the > HTML, I > > see this: > > > > <body > > > background="/mock-trading-partner/images/gray.jpg;jsessionid=9B0DA55495E2CD9BF40AAD98A4E115D8"> > > > > Looks to me like that jsessionid is making it so I > > can't find the background. How do I get rid of > it? > > Thanks - MOD > > -- > Kris Schneider <mailto:[EMAIL PROTECTED]> > D.O.Tech <http://www.dotech.com/> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
