Hello,

I have successfully setup Tomcat but now I want the following:

Suppose some Linux based system has a dynamic and constantly changing
number of users ranging in the thousands. I would like to set up
tomcat so that:

   Each user gets a context root in a directory such as:
   http://localhost:8080/~johndoe/contextroot/

   This happens in such a way that when a request to a subdirectory
   that looks like the one above is issued, Tomcat automatically
   knows how to handle it. Is this possible?

This would be ideal. I don't see why it shouldn't be possible.

If this is impossible, then consider it to be a missing feature
from tomcat. I almost feel it should be documented somewhere if
available, otherwise, if not available, it should be implemented.

I guess I could define a path mapping of the form:

http://localhost:8080/~+/contextroot/

I actually tried this but it did not work: I used the path mapping
inside the webapps/ROOT/WEB-INF/web.xml file:

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd";>

<web-app>

  <display-name>welcome</display-name>
  <description>These examples are from the created contextroot 
subdirectory of webapps.</description>
  <servlet>
    <servlet-name>welcome</servlet-name>
    <description>This web application welcomes you.</description>
    <servlet-class>WelcomeServlet</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>welcome</servlet-name>
    <url-pattern>http://localhost:8080/~*/contextroot/*</url-pattern>
  </servlet-mapping>

</web-app>

I thought I could have the URL execute a servlet, that would execute
then execute a servlet from the users' directory. Sound complicated?
Perhaps there is an easier way???


Suggestions very welcome!!!

Neil


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

Reply via email to