tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Jiang <sji...@infotriever.com>
Subject RE: link problem
Date Mon, 18 Dec 2000 21:28:55 GMT
Own your own personal link from Infotriever. Then your friends will not lose
your contacts anymore whenever you change your address.


http://my.infotriever.com/bobby2info
(Click to add my contact into your organizer and keep up-to-date)


-----Original Message-----
From: Jacob Kjome [mailto:Jacob.R.Kjome@syntegra.com]
Sent: December 18, 2000 4:21 PM
To: tomcat-user@jakarta.apache.org
Subject: RE: link problem


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