try

/main/action as the value in <url-pattern>

I have a similar set up and it works for me...

cheers

-----Original Message-----
From: Harri Varpanen [mailto:[EMAIL PROTECTED]]
Sent: Monday, 27 August 2001 23:28 PM
To: [EMAIL PROTECTED]
Subject: PathInfo problem with tomcat 3.2.1


Hello,

I can't get any path info transferred to my servlets. When I make a request
looking like this:

http://localhost:8080/mytool/main/action

I get a 404 header, and the tomcat server log says:

- Ctx (/mytool): 404 R( /mytool + /main/action + null) null

though I would want the request to be R( /mytool + /main + /action). What
have I done wrong?

Here's my context setup from server.xml:

<Context path="/mytool"
     docBase="webapps/mytool">

And here's my mapping setup from web.xml:

<servlet>
    <servlet-name>MyServlet</servlet-name>
    <servlet-class>MyServlet</servlet-class>
</servlet>
<servlet-mapping>
    <servlet-name>MyServlet</servlet-name>
    <url-pattern>/main</url-pattern>
</servlet-mapping>

I'm running tomcat 3.2.1 on FreeBSD 4.3-STABLE #22. Any ideas?

Harri

Reply via email to