You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Ulrik Sannsell <ul...@debitech.com> on 2002/10/16 15:22:57 UTC
Netbeans 3.4 with builtin Tomcat 4.0.1(problem with pathinfo)
Hello,
I am having problems with the Tomcat server in Netbeans that i run for the
local testing.
The problem is as follows. I have a servlet which i cannot get to work with
extra path info.
When i call it with http://localhost/servlet/my.servlet?param=1 it starts up
the correct servlet and everything seems fine. However when i try to add the
pathinfo to it as in http://localhost/servlet/my.servlet/some/path?param=1
it fails telling me that the requested resource
(/servlet/my.servlet/some/path) is not available.
Hope that someone can enlighten me on this problem as this is something i
cannot resolve.
Regards,
Ulrik Sannsell
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Netbeans 3.4 with builtin Tomcat 4.0.1(problem with pathinfo)
Posted by Radim Kubacki <ra...@sun.com>.
Ulrik Sannsell wrote:
> Hello,
>
> ...
>
> When i call it with http://localhost/servlet/my.servlet?param=1 it starts up
> the correct servlet and everything seems fine. However when i try to add the
> pathinfo to it as in http://localhost/servlet/my.servlet/some/path?param=1
> it fails telling me that the requested resource
> (/servlet/my.servlet/some/path) is not available.
>
> Hope that someone can enlighten me on this problem as this is something i
> cannot resolve.
>
Use your own servlet and servlet-mapping in web.xml that will map your
servlet to these URIs. Now it just uses default mapping for servlets
defined for whole Tomcat (which is BTW originally disabled in latest
versions IIRC) that is not designed to do what you are trying.
Radim
> Regards,
>
> Ulrik Sannsell
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>