tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <>
Subject RE: Can Tomcat access JSP pages out of tomcat folder?
Date Wed, 27 Jun 2007 20:58:51 GMT
> From: Victor Huang [] 
> 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

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:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message