ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Thomas <jtho...@vitria.com>
Subject In Tomcat, is there a way to make the roots of the webserver and servlet eng the same?
Date Fri, 22 Dec 2000 19:34:57 GMT
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" <dbrake@globalinfotek.com>
To: <ant-user@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

Mime
View raw message