Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8C1DF677E for ; Sat, 18 Jun 2011 11:47:48 +0000 (UTC) Received: (qmail 63403 invoked by uid 500); 18 Jun 2011 11:47:44 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 63353 invoked by uid 500); 18 Jun 2011 11:47:44 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 63344 invoked by uid 99); 18 Jun 2011 11:47:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Jun 2011 11:47:44 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [193.252.22.151] (HELO smtp6.freeserve.com) (193.252.22.151) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Jun 2011 11:47:35 +0000 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3513.me.freeserve.com (SMTP Server) with ESMTP id DE3A0700037F for ; Sat, 18 Jun 2011 13:47:14 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3513.me.freeserve.com (SMTP Server) with ESMTP id CECB1700049D for ; Sat, 18 Jun 2011 13:47:14 +0200 (CEST) Received: from mail.homeinbox.net (unknown [2.29.25.126]) by mwinf3513.me.freeserve.com (SMTP Server) with ESMTP id B94EF700037F for ; Sat, 18 Jun 2011 13:47:14 +0200 (CEST) X-ME-UUID: 20110618114714759.B94EF700037F@mwinf3513.me.freeserve.com Received: from localhost (localhost [127.0.0.1]) by mail.homeinbox.net (Postfix) with ESMTP id 57869EAABC2 for ; Sat, 18 Jun 2011 12:47:14 +0100 (BST) X-Virus-Scanned: Debian amavisd-new at homeinbox.net Received: from mail.homeinbox.net ([127.0.0.1]) by localhost (mail.homeinbox.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vvUnbuvPhcT9 for ; Sat, 18 Jun 2011 12:47:01 +0100 (BST) Received: from [192.168.23.9] (study03.dev.local [192.168.23.9]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.homeinbox.net (Postfix) with ESMTPSA id DEDE0EAABBA for ; Sat, 18 Jun 2011 12:47:00 +0100 (BST) Message-ID: <4DFC9031.8040201@apache.org> Date: Sat, 18 Jun 2011 12:46:57 +0100 From: Mark Thomas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-GB; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Allow Servlet to Control "100-continue" response References: In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 18/06/2011 11:56, Simon Olofsson wrote: > Rehtron, > > On 2011-06-18 7:53, Rehtron wrote: >> I need to use the servlet to control this response and accept/reject the >> request before receiving the request content, Is there anyone could >> give me >> some advice? > > as you noticed it's too late when your Servlet is invoked: The request > is already acknowledged. Correct. > You can use a Filter as mack Lu suggested Wrong. > or you could use a Valve Correct. A Valve is the only option. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org