Lots of thanks for your response, Miguel

I think that you mean that I have to change the /home.jsp to ../home.jsp,
isn't it?

Thanks again,
Behrang S.


----- Original Message -----
From: "Miguel Angel Mulero Martinez" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 18, 2002 6:27 PM
Subject: RE: A very strange behaviour


> This is normal. The problem is the browser, that translates "/home.jsp" to
> server/home.jsp and makes this petition to tomcat.
> If you want change that, use relative paths.
>
>
>
> -----Mensaje original-----
> De: Behrang Saeedzadeh [mailto:[EMAIL PROTECTED]]
> Enviado el: mi�rcoles, 18 de septiembre de 2002 15:49
> Para: [EMAIL PROTECTED]
> Asunto: A very strange behaviour
>
> 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.
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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

Reply via email to