Ok, so what was said about using img src="/foo.gif" theoretically seems
true, but in practice it does not work. 

And I don't have the ability to mandate a request.getContextPath() for
every 
Link on the site.

All I want to do is do what apple does if you go to
www.apple.com/ipodmini or www.apple.com/ipodmini/ you get the same page.
This shouldn't be that hard, but whats the best way to do it?  

Should I just start using Apache's mod_rewrite?

Thanks again,
Alan

-----Original Message-----
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 21, 2004 2:42 PM
To: Tomcat Users List
Subject: RE: ServletRequest's path elements not updated by calls to
getRequestDispatcher()


Howdy,

>No, if you use img="/foo.gif"
>then '/' ALWAYS indicates to the browser to request it from the domain
>root.

Yeah, but you don't want to do that because what if the context path
changes?  A relative link would be better, and it's good that the
original poster is already trying to do that, e.g. ../foo.gif.  Consider
using request.getContextPath() + "/images/foo.gif".

Yoav Shapira



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


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



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

Reply via email to