tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Can Tomcat access JSP pages out of tomcat folder?
Date Wed, 27 Jun 2007 20:58:51 GMT
> From: Victor Huang [mailto:victorh@gameworkz.com] 
> Subject: RE: Can Tomcat access JSP pages out of tomcat folder?
> 
> <Context path="/" docBase="C:/www/myapp" crossContext="true"/>
> <Context path="/bs" docBase="C:/shared-jsp/component" 
> crossContext="true"/>

As stated before, remove the path attribute - it's not allowed unless
the <Context> element is in server.xml, which no one should be doing
anymore.  If you want a particular webapp to be the default webapp, its
name must be ROOT (upper case required).  The URI path for the webapp is
derived from the name of its .xml file when that is stored in the
conf/Catalina/[host] directory.

> <jsp:include page="/bs/components/test2.jsp">

Can test2.jsp be accessed directly via an HTTP invocation?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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


Mime
View raw message