Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 96787 invoked from network); 5 Aug 2004 13:45:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 5 Aug 2004 13:45:12 -0000 Received: (qmail 24428 invoked by uid 500); 5 Aug 2004 13:44:24 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 24377 invoked by uid 500); 5 Aug 2004 13:44:24 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 24346 invoked by uid 99); 5 Aug 2004 13:44:23 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [194.44.21.59] (HELO mail.donapex.com) (194.44.21.59) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 05 Aug 2004 06:44:23 -0700 Received: by mail.donapex.com (Postfix, from userid 505) id 16054252DFA; Thu, 5 Aug 2004 16:44:20 +0300 (EEST) Received: from [192.168.1.5] (chester.donapex.net [194.44.21.121]) by mail.donapex.com (Postfix) with ESMTP id E6117252D64 for ; Thu, 5 Aug 2004 16:44:18 +0300 (EEST) Subject: refering to default content handler From: Dmitry Koval To: tomcat-user@jakarta.apache.org Content-Type: text/plain Message-Id: <1091713472.5185.31.camel@skyscraper> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Thu, 05 Aug 2004 16:44:32 +0300 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi. In my configuration I have a servlet that is default handler for all my content. It declared in web.xml as follows: controller / In this case my controller is responsible for all the requests. The problem appears when client need to load an image. I have to read a file and send it to client in my servlet. And that way with all static data. I have to find what the file type is, find appropriate mime mapping then read it and so on. I actually don't like this approach because I think delegating this task to default tomcat handler makes more sense. May I write something like this in addition to my config? : org.apache.defaultContentHandler /images So I'd like have everything handled by my controller except /images handled by default tomcat handler. Or maybe there's some other elegant solution? Please cc to me, cause I'm not subscribed to a list. Thanks for attention. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org