File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Mapping Requests to Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Mapping Requests to Servlets" Watch "Mapping Requests to Servlets" New topic
Author

Mapping Requests to Servlets

Nitin Dindorkar
Greenhorn

Joined: Nov 14, 2003
Posts: 6
Hi,
Following is the second rule about the mapping requests to servlets on page 85 of Servlet Spec 2.4.
I am not able to understand the rule. If some one can explain in a bit simpler english please (with example will be great).
" 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."
THank you
Nitin
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
You can refer to the book: SCWCD Exam Study Kit, page 74 to page 77.
Nick


SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Mapping Requests to Servlets