Can somebody please clear explain me the terms ServletPath,RequestPath,PathInfo,RequestURI
and if possible with 1-2 examples , all these are really confusing , I read through the Servlet Specificationas well. but still not very clear.
1)ServletPath---> If our DD declares,
and if our browser request is
, the ServletPath is '/ServOne'.
2)I think there is no method RequestPath.
3)PathInfo---> which returns extra path of /ServOne that we have declared in DD, i.e it returns '/*'. Suppose if our browser request is , here PathInfo returns '/AditiServ'.
4)RequestURI--->which returns the browser request without query string, i.e, '/TestServ/ServOne/*'