-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Grzegorz Kossakowski wrote:
> Giacomo Pati pisze:
> 
>>> If you think about getServletPath() of HttpServletRequest hold in
>>> BlockCallHttpServletRequest it will return mount-path but not for the
>>> current servlet but for the servlet that called current servlet.
>>
>> Than there is something wrong with it IMHO.
> 
> Why do you think so? Object representing current request returns mount
> path were servlet processing current request in mounted at. What's wrong
> with it?

If I understand the Servlet API correctly than:

getContextPath should return the path where the webapp is mounted in the 
Servlet-Container (root path)

getServletPath should return the path where a specific Servlet is mounted in 
the webapp according to
the web.xml mapping.

PS: Sorry for the previous mail which was sent by incidentally hitting the send 
button

- --
Giacomo Pati
Otego AG, Switzerland - http://www.otego.com
Orixo, the XML business alliance - http://www.orixo.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (GNU/Linux)

iD8DBQFGZ8PILNdJvZjjVZARAmt3AJ9dInsgj4iL/9pGZ/cRw3EhjpbQlwCgxspe
EttHaimK7DP9MYqIj+5Qn30=
=unra
-----END PGP SIGNATURE-----

Reply via email to