tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wolfgang Stein <zo...@gmd-net.de>
Subject RE: Extra path info supported in Tomcat 3.1?
Date Wed, 02 Aug 2000 17:51:37 GMT
Try something like

    <servlet-mapping>
        <servlet-name>
            MyServlet
        </servlet-name>
        <url-pattern>
            /MyServlet/*
        </url-pattern>
    </servlet-mapping>


Wolfgang



> -----Original Message-----
> From: William Hovingh [mailto:whovingh@pcusa.org]
> Sent: Wednesday, August 02, 2000 7:23 PM
> To: tomcat-user@jakarta.apache.org
> Subject: Extra path info supported in Tomcat 3.1?
> 
> 
> Forgive me if this is FAQ: I've tried to search through past
> messages of the list and at the Tomcat info sites I'm aware
> of, and haven't found an answer:
> 
> How do I invoke a servlet and pass it "extra path info"
> (which would be available within the servlet through the
> HttpServletRequest.getPathInfo() method)?
> 
> When I attempt to do this thus:
> 
> GET
> http://server.example.com/mycontext/MyServlet/foo/bar?parm=val
> 
> (where I've defined the servlet MyServlet in the web.xml
> file of the mycontext context, and expect
> request.getPathInfo() to return the String "/foo/bar"), I
> get "404 /mycontext/MyServlet/foo/bar File Not Found" as a
> result.
> 
> What am I missing?
>

Mime
View raw message