You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Don Vaillancourt <do...@avaterra.com> on 2000/04/26 22:29:54 UTC
Where is path to WEB-INF defined?
Okay, I have a stupid question for you all.
Where is the path to WEB-INF defined. I've looked through the
information that I had and could not find out.
Thanks
Don
Re: Where is path to WEB-INF defined?
Posted by Don Vaillancourt <do...@avaterra.com>.
> > Okay, I have a stupid question for you all.
> >
> > Where is the path to WEB-INF defined. I've looked through the
> > information that I had and could not find out.
>
> I'm guessing that you mean is, for each context, where it's defined. You
> can find that out with the Servlet Context class:
>
> getServletContext().getRealPath("/WEB-INF");
>
> I believe that's it.
I have a context that points to /wwwkia/kia/portal. In that folder is the
folder WEB-INF. In that it. Then that makes sense.
Thanks
Don
Re: Where is path to WEB-INF defined?
Posted by Roy Truelove <ro...@binghamton.edu>.
From: Don Vaillancourt <do...@avaterra.com>
> Okay, I have a stupid question for you all.
>
> Where is the path to WEB-INF defined. I've looked through the
> information that I had and could not find out.
I'm guessing that you mean is, for each context, where it's defined. You
can find that out with the Servlet Context class:
getServletContext().getRealPath("/WEB-INF");
I believe that's it.
-Roy
>
> Thanks
>
> Don
>
>
>
----------------------------------------------------------------------------
----
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: Where is path to WEB-INF defined?
Posted by Jan Labanowski <jk...@osc.edu>.
in $TOMCAT_HOME/conf/server.xml
you define contexts:
<Context path="/examples" docBase="webapps/examples"
debug="0" reloadable="true" >
</Context>
or with full path:
<Context path="/examples" docBase="/my/full/path/webapps/examples"
debug="0" reloadable="true" >
</Context>
and the docBase is a directory in which the WEB-INF subdirectory is
located.
On Wed, 26 Apr 2000, Don Vaillancourt wrote:
> Okay, I have a stupid question for you all.
>
> Where is the path to WEB-INF defined. I've looked through the
> information that I had and could not find out.
>
> Thanks
>
> Don
>
>
>
Jan K. Labanowski | phone: 614-292-9279, FAX: 614-292-7168
Ohio Supercomputer Center | Internet: jkl@osc.edu
1224 Kinnear Rd, | http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163 | http://www.osc.edu/