Dear Stefanie,

Include file takes absolute path and not virtual path. The path you are giving is 
virtual which is used by webserver to show the content. But in case of include 
directives in jsp it is the job of jsp engine to resolve them and it uses absolute 
paths only.

-----Original Message-----
From: Richter, Stefanie (Student Assistant)
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 1:05 PM
To: [EMAIL PROTECTED]
Subject: problems with include directive


hello,
can anybody help me.
I want to use the include directive with JSP in Tomcat 4.0.3. Therefore I
want to use the relative path.

For example if I use the relative path for: <img
src="/examples/images/code.gif"> it works, but if I want to include:
<%@ include file="/examples/jsp/include/foo.jsp" %>
I get the error file not found.
Does anybody hnow why and how I could solve this problem?

I am using Apache 1.3 and Tomcat 4.0.3.

Do I have to make an entry in Tomcats server.xml or web.xml so that the
relative paths are found?

Regards,
Steffi Richter

===========================================================================
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to