On Sun, 2004-12-05 at 18:51 +0100, Mark Lowe wrote:
> Its a general container thing.. 

Thanks for your help. Question:

- why do I get jsessionid appended to text ? Look at the attachment. The
message is generated with a <c:out> tag and the jsessionid is appended
to it!

> Choices.
> 
> 1. You can use relative links for images and such like (<img
> src="../images/foo.gif" />)
> 2. Write a filter that strips the session id off any request that
> isn't a .jsp,servlet or .do or whatever you need the session ids for.


> 3. use mod_rewrite and strip the session id's off that way (harder to
> test in development)
> 4. Append all you image/css/js paths with ${pageContext.request.contextPath} 
> <img src="${pageContext.request.contextPath}/image/foo.gif " />
> or
> <img src="<%= request.getContextPath() %>/images/foo.gif" />
> 
> I like option 2. If you want my opinion. 
> 
> Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to