I am using tomcat 4.1 server. I have a servlet named LoginServlet & have defined it in the deployment descriptor as follows: <servlet-mapping> <servlet-name>LoginServlet</servlet-name> <url-pattern>Login.*</url-pattern> </servlet-mapping>
* A string beginning with a �/� character and ending with a �/*� postfix is used for path mapping. * A string beginning with a �*.� prefix is used as an extension mapping. * A string containing only the �/� character indicates the "default" servlet of the application. In this case the servlet path is the request URI minus the context path and the path info is null. * All other strings are used for exact matches only.
The only bullet yours satisfies is the fourth. And there is no page literally named "Login.*", so you get 404.
Basically, you can map an extension (*.foo) or a path (/foo) but not both.
Kavita Bopardikar
Greenhorn
Joined: Oct 16, 2000
Posts: 13
posted
0
Thank you.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: servlet-mapping tag of deployment descriptor