You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Jacob Thomas <jt...@vitria.com> on 2000/12/22 20:34:57 UTC

In Tomcat, is there a way to make the roots of the webserver and servlet eng the same?

I am trying to migrate a legacy web application consisting of JSPs to
Tomcat.
This application currents works in JSWDK and JRun.

The paths to resources (such as JSPs, images, style sheets, etc.) are given
as absolute paths that include the context name ("awi"). For example, 
a JSP refers to an image as "/awi/images/xyz.gif" and to another JSP
as "/awi/someDir/abc.jsp".  When this application is installed as
webapps/awi for Tomcat
the web server treats "webapps/" as its root while the servlet engine treats

"webapps/awi/" as the application's root. This implies having to make a lot 
of changes in how the paths are specified. The paths that are handled by the
servlet engine must be changed to "/someDir/abc.jsp" while the other
resources must
be preserved as "/awi/images/xyz.gif", etc. Is there a better way to migrate
this
application? 
--
Thanks in advance
Jacob


-----Original Message-----
From: Nico Seessle [mailto:Nico.Seessle@epost.de]
Sent: Friday, December 22, 2000 9:17 AM
To: ant-user@jakarta.apache.org
Subject: Re: Project name


----- Original Message -----
From: "Dennis Brake" <db...@globalinfotek.com>
To: <an...@jakarta.apache.org>
Sent: Friday, December 22, 2000 2:01 PM
Subject: RE: Project name


> This didn't work for me. What version are you using?
>

Maybe this way added after the 1.2-release. You might try one of the nightly
builds.

Nico