It's not a secret anymore!
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Mapping Requests to Servlets" Watch "Mapping Requests to Servlets" New topic

Mapping Requests to Servlets

Nitin Dindorkar

Joined: Nov 14, 2003
Posts: 6
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
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.

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)
I agree. Here's the link:
subject: Mapping Requests to Servlets
jQuery in Action, 3rd edition