Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 63864 invoked from network); 23 Feb 2005 10:06:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 23 Feb 2005 10:06:48 -0000 Received: (qmail 35376 invoked by uid 500); 23 Feb 2005 10:06:37 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 34575 invoked by uid 500); 23 Feb 2005 10:06:35 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 34560 invoked by uid 99); 23 Feb 2005 10:06:35 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of ulrich.elsner@gmail.com designates 64.233.184.199 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.199) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 23 Feb 2005 02:06:32 -0800 Received: by wproxy.gmail.com with SMTP id 36so99478wra for ; Wed, 23 Feb 2005 02:06:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=lljwlP/Uj92mlJ8gihYGL2Q84GmxTkHdoTPRm2aakkidQxE6eYpfdG/HmLNLU0t/uvxk6LOVUl9D8XghPPOd8xFwzxpDAI0O1IYg9lFesRjvX+XdegiTIFNjl/dr4dBuk2erBksjRt5xXtF8B8xafGSbGLVnqGho8h60onMpF6I= Received: by 10.54.57.9 with SMTP id f9mr98623wra; Wed, 23 Feb 2005 02:06:29 -0800 (PST) Received: by 10.54.57.32 with HTTP; Wed, 23 Feb 2005 02:06:29 -0800 (PST) Message-ID: <1371d53b05022302061bb60fa7@mail.gmail.com> Date: Wed, 23 Feb 2005 11:06:29 +0100 From: Ulrich Elsner Reply-To: Ulrich Elsner To: Struts Users Mailing List , Mark Subject: Re: gzip compression on HTML In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, the real question is whether you really need your your application to handle compression. Compression is normally independant from the application and should be handled on another layer. I would delegate this task to the HTTP-Server (e.g., using mod_gzip on apache) or, if for some reason this is not possible, at least to the application server (see e.g. http://www.onjava.com/pub/a/onjava/2003/11/19/filters.html ). Regards, Ulrich Elsner On Tue, 22 Feb 2005 20:40:34 +0100, Mark wrote: > Hi there, > > I am fairly new to Struts and was wondering how to configure a struts > application to use gzip compression on the HTML which is served back > to the browser? This is fairly simple to do with regular servlets, but > I haven't been able to find any information on how to do this with a > struts app. Any advice or pointers would be greatly appreciated. > Thanks! > > cheers, > Mark > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org