Hi,
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 [mailto:[EMAIL PROTECTED]
>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
you
>> want using however many <servlet-mapping> elements you want.
>
>Thanks for response.
>I have added to my web.xml:
>
><servlet>
>        <servlet-name>defaultServlet</servlet-name>
>
<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-
>class>
></servlet>
>
><servlet-mapping>
>        <servlet-name>defaultServlet</servlet-name>
>        <url-pattern>/images</url-pattern>
></servlet-mapping>
>
>But for handling /images still the servlet mapped as / is used.
>
>Any pointers?
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to