I have a problem which breaks my head :-)
I am using Tomcat 3.2.1.
Here is what I have in server.xml
 

  <Host name="127.0.0.1" >
  <Context path="/exchange"
                 docBase="D:/GuidanceExchange/exchange"
                 crossContext="false"
                 debug="0"
                 reloadable="true" >
        </Context>
  </Host>
 
I have two pages one is located:
 D:\GuidanceExchange\exchange\index.jsp
and have a link <a href="<%= request.getContextPath() %>"/jsp/test.jsp"> test</a>
 
test.jsp is another page located at
D:\GuidanceExchange\exchange\jsp\test.jsp
 
The problem is when I execute index.jsp page the link is pointing to http:///exchange/jsp/test.jsp which is incorrect...it should point to
http://127.0.0.1:8080/exchange/jsp/test.jsp. So, how do I get 127.0.0.1:8080 into my URL?
 
Thank you very much for any help in advance,
 
Maksim.

Reply via email to