Hi, Can anybody explain me a bit on what they mean.... This is part of the chapter in servlet spec("Mapping Requests to Servlets")
2. The container will recursively try to match the longest path-prefix. This is done by stepping down the path tree a directory at a time, using the �/� character as a path separator. The longest match determines the servlet selected.
if ur url is x/first/second/com.MyServlet 1. search for x/first/second/com.MyServlet pattern...NOT FOUND 2. search for /first/second/com.MyServlet pattern... FOUND
this maps to servlet1
if ur url is x/y/second/com.MyServlet 1. search for x/y/second/com.MyServlet ...pattern...NOT FOUND 2. search for /y/second/com.MyServlet ...pattern... NOTFOUND 3. search for /second/com.MyServlet ...pattern... FOUND