Here is an example of a Servlet and URL mapping

<servlet>
   <servlet-name>AServlet</servlet-name>
   <servlet-class>my.package.AServlet</servlet-class>
 </servlet>
 <servlet-mapping>
   <url-pattern>*.ase</url-pattern>
   <servlet-name>AServlet</servlet-name>
 </servlet-mapping>

The servlet mapping associates the name AServlet
to the servlet my.package.AServlet.
The URL mapping means that ANY request that ends in
 .ase will be passed to the associated servlet via
the servlet mapping

If you want a specific filename, specific.ase would
mean any request for the file specific.ase would be
routed to the my.package.AServlet servlet.

I am not certain if you can specify a complete path
(ie /some/path/specific.ase) as I have never needed
such specificity however get the first example working
and then try the more specific versions.

I have only ever used the first type of mapping scheme
in practice, I know that it works.

Andy

-----Original Message-----
From: Paul Downs [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 14, 2001 12:35 PM
To: tomcat
Subject: servlet-mapping problem


Hi,
  Still cannot use servlet-mapping and url-mapping have tried many a 
configuration.  Is it possible that anyone on the list using tomcat
3.2.3 
could mail me (personally or not) a short example of the relevant lines 
they have in server.xml and the web.xml for the user?  It is starting to

become a real problem... :-(

Paul

Reply via email to