The servlet engine splits the URI into three useful sections: the context path (application prefix), the servlet path, and the path info.
For example, given an application prefix of '/myapp', the api
REF : Servlet API
For example, given an application prefix of '/myapp', the api
/myapp/dir/test.jsp/data
will be split as follows:/myapp/dir/test.jsp/data | getRequestURI() |
/myapp | getContextPath() |
/dir/test.jsp | getServletPath() |
/data | getPathInfo() |
REF : Servlet API
No comments:
Post a Comment