You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Se...@aol.com on 2001/05/15 06:58:50 UTC

simply this...

In a message dated Tue, 15 May 2001 12:53:16 AM Eastern Daylight Time, Seasundown writes:

<< TIA...

Start with a pristene standalone Tomcat install.

I simply wish to create a directory which would 
recognize servlets & jsp files.  A directory in addition to the current "examples" location.  

I've edited server.xml to provide 2 more "contexts":  

---------------------------------------------
 <Context path="/examples"      <-orig tag(still there) 
      docBase="webapps/examples"             
      crossContext="false"
      debug="0"
      reloadable="true" >
  </Context>

<Context path="/mystuff1"       <--my new context entrys
      docBase="webapps/mystuff1" 
      debug="0"
      reloadable="true" >
  </Context>

<Context path="/mystuff2"      <--my new context entrys
       docBase="webapps/mystuff2"  
       debug="0"
       reloadable="true" >
  </Context>

-----------------------------------------

Is there ANYTHING else to configure (other
than placing a servlet and a jsp in this 
directory before being able to connect with:

localhost:8080/mystuff1/mynewservlet
&
localhost:8080/mystuff2/mynewjsp.jsp

in order to have servlet & jsp working?


 >>



Re: simply this...

Posted by Hari Yellina <ye...@iprimus.com.au>.
/mystuff1 rather giving in this manner , please give just / it works.
----- Original Message -----
From: <Se...@aol.com>
To: <to...@jakarta.apache.org>
Cc: <se...@aol.com>
Sent: Tuesday, May 15, 2001 2:58 PM
Subject: simply this...


> In a message dated Tue, 15 May 2001 12:53:16 AM Eastern Daylight Time,
Seasundown writes:
>
> << TIA...
>
> Start with a pristene standalone Tomcat install.
>
> I simply wish to create a directory which would
> recognize servlets & jsp files.  A directory in addition to the current
"examples" location.
>
> I've edited server.xml to provide 2 more "contexts":
>
> ---------------------------------------------
>  <Context path="/examples"      <-orig tag(still there)
>       docBase="webapps/examples"
>       crossContext="false"
>       debug="0"
>       reloadable="true" >
>   </Context>
>
> <Context path="/mystuff1"       <--my new context entrys
>       docBase="webapps/mystuff1"
>       debug="0"
>       reloadable="true" >
>   </Context>
>
> <Context path="/mystuff2"      <--my new context entrys
>        docBase="webapps/mystuff2"
>        debug="0"
>        reloadable="true" >
>   </Context>
>
> -----------------------------------------
>
> Is there ANYTHING else to configure (other
> than placing a servlet and a jsp in this
> directory before being able to connect with:
>
> localhost:8080/mystuff1/mynewservlet
> &
> localhost:8080/mystuff2/mynewjsp.jsp
>
> in order to have servlet & jsp working?
>
>
>  >>
>
>