tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: refering to default content handler
Date Thu, 05 Aug 2004 14:19:48 GMT

You might want to read up a bit on url-pattern.  The url-pattern
"/images" is not the same as "/images/*" for example.  Full details are
in the Servlet Specification.

You don't have to declare the default servlet again, only map it.  If
you have the <servlet> element for a servlet in your web.xml, the
servlet class must be available to the classloader.

Yoav Shapira
Millennium Research Informatics

>-----Original Message-----
>From: Dmitry Koval []
>Sent: Thursday, August 05, 2004 10:15 AM
>To: Tomcat Users List
>Subject: RE: refering to default content handler
>On Thu, 2004-08-05 at 16:52, Shapira, Yoav wrote:
>> See conf/web.xml for the DefaultServlet declaration.  Map it however
>> want using however many <servlet-mapping> elements you want.
>Thanks for response.
>I have added to my web.xml:
>        <servlet-name>defaultServlet</servlet-name>
>        <servlet-name>defaultServlet</servlet-name>
>        <url-pattern>/images</url-pattern>
>But for handling /images still the servlet mapped as / is used.
>Any pointers?
>To unsubscribe, e-mail:
>For additional commands, e-mail:

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message