Hi ,
I have my SCWCD exam this coming thursday .
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.
Based on these concepts I have few questions as well ??
(1)If my browser request is :
http://localhost8080/demo/testExamples/test/test1
If my servlet mapping is /test/*, then what would be the Servlet Path and PathInfo
(2) and another one from enthuware mock tests
If the servlet-mapping is /account/* and the requestURI is /myapp/account/*, then what would be the Servlet Path and PathInfo
Ans: /account is ServletPath, /* is PathInfo
Thanks In Advance..