"Teng, Nan" wrote:
>
> Could anybody tell me how the servlet engine map the client request
> to the target servlet. I want to know the method and sequence. Thanks in
> advance.
>

 Your HTTP server gets first crack at the request, and
there are many possibilities for how the server decides
to map a particular url. You'll have to consult your server's
documentation to find out the details. If you happen to be
using Tomcat or Tomcat/Apache, there are some informative
docs at:

 <URL:http://jakarta.apache.org/tomcat/index.html>

 After the request makes it to the servlet engine, the
process is defined by the servlet specification, available
at:

  <URL:http://java.sun.com/products/servlet/download.html>

 It can get a little tricky, because a servlet can
redispatch a request, and there can now be things called
"filters". (See the 2.3 spec)

 If you just mean "how does it normally happen, and
how do I set things up", then check the spec or some of
the more generic docs at the Tomcat site, paying
particular attention to "webapps" and a file called
"web.xml".


-cks

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to