On Fri, 21 Dec 2001, Scott Eade wrote:

> Date: Fri, 21 Dec 2001 23:53:42 +1100
> From: Scott Eade <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: servlet-mapping problem - tomcat 4.0.1
>
> How do I default a user to my servlet without blocking access
> to other directories?  Using a default mapping of "/" results in
> failure to gain access to resources under my servlet directory.
>

Understanding this requires a little explanation about what is really
going on.

* The servlet mapping pattern of "/" establishes the
  default servlet -- in other words, the servlet that
  Tomcat will hand the request to if it can find no other
  servlet mapping that matches.

* Tomcat, out of the box, defines a default servlet that
  serves the static resources (including your stylesheet).

* You can take over the default mapping yourself, but then
  you give up Tomcat's standard file-serving service and
  do it yourself if you still need that feature.

To give you suggestions, it would be helpful to understand what you mean
by "default a user to my servlet".  What application functionality are you
trying to accomplish?

Craig


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to