關於servlet mapping
Upon receipt of a client request, the Web container determines the Web application
to which to forward it. The Web application selected must have the the longest
context path that matches the start of the request URL. The matched part of the URL
is the context path when mapping to servlets.
The Web container next must locate the servlet to process the request using
the path mapping procedure described below.
The path used for mapping to a servlet is the request URL from the request
object minus the context path and the path parameters. The URL path mapping
rules below are used in order. The first successful match is used with no further
matches attempted:
1. The container will try to find an exact match of the path of the request to the
path of the servlet. A successful match selects the servlet.
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.
3. If the last segment in the URL path contains an extension (e.g. .jsp), the servlet
container will try to match a servlet that handles requests for the extension.
An extension is defined as the part of the last segment after the last ’.’ character.
4. If neither of the previous three rules result in a servlet match, the container will
attempt to serve content appropriate for the resource requested. If a "default"
servlet is defined for the application, it will be used.
誰能給我講講這是什麼意思?
我找遍了所有的書,包括Sun和O'REILLY的,沒有一本書上講過這些內容。看規範又不太明白,真是太累了。
誰能幫幫我,在這裡先謝謝了!
相關文章
- 關於servlet的理解Servlet
- 關於castor的xml mappingASTXMLAPP
- 關於Servlet小總結Servlet
- 關於Servlet的原理以及常用類Servlet
- 關於Servlet中的事件監聽 薦Servlet事件
- javaweb關於jsp、servlet基礎筆記JavaWebJSServlet筆記
- Servlet中關於web.xml的測試ServletWebXML
- jsp、servlet關於中文問題再談JSServlet
- 急問:關於servlet中得session問題ServletSession
- 關於 Mybatis mapping.xml中的 StatementType 知識點MyBatisAPPXML
- 關於easymock的模擬servlet的doPost的方法的淺例MockServlet
- web.xml中的servlet相關WebXMLServlet
- 基於servlet線上書店系統Servlet
- 關於servlet多執行緒序的疑問,請各位仁兄作答,謝謝。Servlet執行緒
- 基於servlet+原生dbc的登入案例(含servlet知識點梳理)Servlet
- JSP規範、Servlet關係、基礎JSServlet
- Elasticsearch MappingElasticsearchAPP
- 管理mappingAPP
- Servlet技術---Servlet深化Servlet
- JavaWeb開發必過關-Servlet學習(一)JavaWebServlet
- Servlet系列:(一)servlet原理剖析Servlet
- Servlet技術----Servlet入門Servlet
- ElasticSearch(二):MappingElasticsearchAPP
- 7.2、使用基於 Servlet 3.0 的檔案上傳Servlet
- 基於servlet的檔案上傳和下載Servlet
- 關於IT,關於技術
- Servlet.service() for Servlet jsp threw exception javax.servlet.ServletException:File "/pageFooServletJSExceptionJava
- Servlet和JSP規範及版本對應關係ServletJS
- ElasticSearch 中的 MappingElasticsearchAPP
- MAPPING TABLE 的作用APP
- JavaWeb——ServletJavaWebServlet
- JavaWEB - ServletJavaWebServlet
- Elasticsearch實踐(三):MappingElasticsearchAPP
- 輿情繫統mappingAPP
- 數倉建模—ID MappingAPP
- Elasticsearch Mapping型別修改ElasticsearchAPP型別
- Mapping Table (233)APP
- 關於