Kevin Duffey wrote:
>
> Thanks Hans. This is what I thought. I don't remember what the problem was
> but I did something like this and ran into problems before. When only a
> single app is deployed, or a Servlet 2.1 or earlier, it is perfectly ok to
> use /images/path/image.gif, or /path/page.jsp. But when working with
> web-apps in Servlet 2.2, its necessary to properly map via relative paths.
> So, I take it a link in the SAME root dir of any given web-app would not be
> <a href="/file.jsp"></a> but <a href="file.jsp"></a> so that it is
> "relative" to the location of the page that has the link in it?

Right. A relative path in an HTML element is a path that doesn't start with
a slash, such as "file.jsp" or "../file.jsp". The browser interprets it as
relative to the URL for the page that contains it.

Hans
--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com
Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to