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">
use
<a href="./mypage.jsp">
or even simpler
<a href="mypage.jsp">

Regards
  mks

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to