tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob Kjome" <Jacob.R.Kj...@syntegra.com>
Subject RE: link problem
Date Mon, 18 Dec 2000 21:21:09 GMT
You can use:   ":" + request.getServerPort()
 
 
jake

-----Original Message-----
From: MK [mailto:maksim.kopelovich@guidance.com]
Sent: Monday, December 18, 2000 2:58 PM
To: tomcat-user@jakarta.apache.org
Subject: link problem



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 <http:///exchange/jsp/test.jsp>  which is
incorrect...it should point to 
http://127.0.0.1:8080/exchange/jsp/test.jsp
<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.


Mime
View raw message