tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <Craig.McClana...@eng.sun.com>
Subject Re: getPathInfo() in 3.2
Date Sat, 02 Dec 2000 02:04:53 GMT
Carles Pi-Sunyer wrote:

> I'm having a problem moving an application from 3.1 to 3.2.
>
> My webapp is mapped to /host,
> the main servlet in the webapp is handled by just /.
>
> In 3.1, with the following url:
>
> localhost:8080/host/example/Home/
>
> getPathInfo() would return:
>
> /example/Home/
>
> in 3.2 getPathInfo() returns null for the same url.
>

Tomcat 3.1 did not conform to the servlet 2.2 specification errata for how
mapping works for the default servlet (which is not surprising, because it was
released before the errata was published), but Tomcat 3.2 does.  See:

    http://java.sun.com/products/servlet/errata_042700.html

item #4.  For your scenario, you should call getServletPath() instead of
getPathInfo() to return "/example/Home/".

>
> Any ideas?
>
> Thanks,
> Carles

Craig McClanahan



Mime
View raw message