tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Schönhaber <>
Subject Re: Tomcat 5.5 Configure a Host
Date Wed, 19 Jul 2006 09:04:13 GMT
Scott Purcell wrote:
> I created a war file and deployed it to $CATALINA_HOME/webapps today. When
> I hit the site I use http://localhost:8080/appname and it pulls up the
> index.html from appname. All good.
> Problem begins with some links I have within the application. A lot of the
> links do not include the context. Basically for good reason, as another
> site that I have  DNS for, I had to take out the context from the links.
> EG:
> <a href="/mypage.jsp"> fails, because it needs <a
> href="/appname/mypage.jsp">
> I do not want to add the context in front of each of my links. What I want
> to do is somehow create a name (I did not purchase another DNS) name yet,
> and tie the localhost:8080/appname as 1 context. Some dns-like name until I
> purchase DNS?

Simply don't use absolute paths for hrefs. I. e. instead of
<a href="/mypage.jsp">
<a href="./mypage.jsp">
or even simpler
<a href="mypage.jsp">


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message