In Tomcat 3.2.x  you can specify which directory
you want tomcat to pick up your servlet.

In the distribution server.xml for instance:

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

states that the servlets/jsp pages are found under
$TOMCAT_HOME/webapps/examples.

So you can create your own context:
        <Context path="/myservlet"
                 docBase="webapps/myservlet"
                 crossContext="false"
                 debug="0"
                 reloadable="true" >
        </Context>

And you have to add the WEB-INF directory underneath
the webapps/myservlet directory and populate that with

a web.xml (the deployment descriptor for your servlet)
and also add a classes directory to put your classes
in there. For the first go-around, put your classes in
the default package (i.e., no package stmt).

Hope this helps.

-Ganesh
Hope this helps.
-Ganesh


--- [EMAIL PROTECTED] wrote:
> I got a chance to look at server.xml. And it is
> almost like apache, however 
> when I type http://127.0.0.1/path to a servlet,  I
> get the page couldn't be 
> find error message. I don't think the connection is
> even being made. I looked 
> over the server.xml regarding "context" to see the
> directories where the 
> application files are to be put, and I also looked
> at the virtual host and 
> the virtual host says to type url
> http://127.0.0.1/examples/where the servlet 
> is to be find and still nothing . Anyone has any
> suggestions.......
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to