Hi I'm designing a new web application and I have stored my files in the D:\Tests\Web\HeaderTest directory and I have defined the following Context in the server.xml:
<Context path="/headertest" docBase="D:\Tests\Web\HeaderTest" debug="0" privileged="true" /> I suppose this tells the Tomcat that the root directory for my webapp is D:\Tests\Web\HeaderTest or http://localhost:8080/headertest. But if I define a link in a page in my webapp such as: <a href="/home.jsp">Link </a> it refers to a wrong document: http://localhost:8080/home.jsp which is unavailable. Does anybody know what's wrong with this? Also another problem is that when I include a file using the include action or even the include directive the links defined in the included document changes so they don't refer to their original destinations anymore. For example, I want a header.html to be included in all the pages throughout my web site but if I include the header.html in subdirectories of my web app, the links get broken. I have tried lots of guesses and I have read some parts of JSP 1.2 Spec that are about includes and ... but I have not found the answer. All helps are appreciated. Thanks in advance.