Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: Re: pro_jsp Tomcat config question


Message #1 by Seasundown@a... on Wed, 09 May 2001 21:40:30 EDT
OK,

Here is a much simpler way to ask my question
regarding Tomcat config & servlets:

The default installation serves all of
the example servlet classes from:

$TOMCAT_HOME\webapps\examples\WEB-INF\classes.
E.g., The URL to call "servletclassfile" is:

"http://localhost:8080/examples/servlet/servletclassfile"

A new servlet class ( "newservletclassfile.java)  
can be placed in this directory. It is functional 
& works just like all other examples in that 
directory.  You would simply call the new class name 
to invoke in place of "servletclassfile" string.

How does one configure Tomcat run  "newservletclassfile" from another 
directory structure under $TOMCAT_HOME/webapps.
 E.g, :

"$TOMCAT_HOME/webapps/newdir1/newservlet/servletclassfile"

Furthermore. how does one name an additional
port while also calling the directory according to
the new file locations ?  E.g.:

"http://localhost:99/newdir1/servlet/newservletclassfile"

Let's say for now I'd like to do the above change
without discussing the config file anomalies 
and complexities of "ant" so that I keep it 
simple...at least for today.

TIA!!



  Return to Index