Hello David,
you do not have to place your application directories inside webapps.
In server.xml you can define (for example the application dir.) myIntra in the
following way (I'm using unix format /myIntra is a physical directory in on the
root level):

<Context  path="myIntra"
          docBase="/myIntra"
          crossContext="false"
          debug="0"
          reloadable="true" >
</Context>

However you will still have to place your servlets in /myIntra/WEB-INF/classes.
This secures your code from any prying eyes because noone can browse the WEB-INF
directory from a browser. Also, I do not know a workaround.

physical path: /Myintra
virtual path: http://localhost/Myintra/

You will then place your servlets in:
physical path: /Myintra/WEB-INF/classes/
You access your servelts via:
virtual path: http://localhost/Myintra/servlet/ServletName







David DELGRANCHE <[EMAIL PROTECTED]> on 04/17/2001 04:26:47 AM

Please respond to [EMAIL PROTECTED]; Please respond to
      "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>

To:   "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:    (bcc: Suha Yacoub/IL/ONE)
Subject:  Positionning servlets source to use Tomcat



          Hi all,

     I'm a new user of Tomcat. I had an Apache server with JServ to execute
servlets. It semmes that I had problems using JServ so I'm trying using
Tomcat. I have installed it on my Apache server. I'm able to execute the
examples servlets, so my installation seems to be OK.
     In order to use my own servlets, I have to configure Tomcat to recognize
them. In the Tomcatdocs, it is written in the "Development Processes" that
I have to create a project, etc... Is there a simplier way to use Tomcat?
If I create a directory in the webapps one and the a Web-inf subdirectory
to put in my servlets isn't it enough if I add a Context tage in the
servler.xml configuration file?
     Anyone can help me?
     Thanks a lot

     david.

David DELGRANCHE
[EMAIL PROTECTED]
Tel: 02.99 05.34.25
Fax: 02.99.05.34.05
Sogitec Industries
24, Avenue Lavoisier
ZI du Champ Niguel
35174 BRUZ CEDEX









Reply via email to