You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michael Muratet <ma...@torchconcepts.com> on 2002/12/11 20:38:17 UTC
JSP file locations and browsable directories
Greetings
I know there must be a simple answer to this, but I'm damned if I can
find it. I'm using 4.1.10. I've looked at the documentation for
server.xml and web.xml, but I'm still at a loss.
I have some legacy code in which the application trees are in the form
$CATALINA_HOME/webapps/app1 and $CATALINA_HOME/webapps/app2 (as opposed
to $CATALINA_HOME/webapps/ROOT). The directories app1 and app2 can
be viewed with a browser. The applications have some common class file
names, although the classes are not necessarily the same, and it's
otherwise a hassle to move all the files and resources under ROOT. Is
there a simple (complicated?) way to tell tomcat where to find index.jsp
without exposing the directory to the world?
Thanks.
Mike
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: JSP file locations and browsable directories
Posted by Michael Muratet <ma...@torchconcepts.com>.
On Wed, 11 Dec 2002 15:41:11 -0500
"Noel J. Bergman" <no...@devtech.com> wrote:
> This should have given you a clue:
>
> <!-- Define properties for each web application. This is only
> needed
> if you want to set non-default properties, or have web
> application document roots in places other than the virtual
> host's appBase directory. -->
>
> <!-- Tomcat Root Context -->
> <!--
> <Context path="" docBase="ROOT" debug="0"/>
> -->
>
> Replace the docBase value with your desired webapp.
>
> --- Noel
>
>
Thanks. It was a little more complicated than that, but it got me on the
right path. I was confused by some of the tags which it turns out are
not required.
Mike
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: JSP file locations and browsable directories
Posted by "Noel J. Bergman" <no...@devtech.com>.
This should have given you a clue:
<!-- Define properties for each web application. This is only needed
if you want to set non-default properties, or have web application
document roots in places other than the virtual host's appBase
directory. -->
<!-- Tomcat Root Context -->
<!--
<Context path="" docBase="ROOT" debug="0"/>
-->
Replace the docBase value with your desired webapp.
--- Noel
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>