Hi
I have gone thru the doc. I specified the following in web.xml file
<filter>
  <filter-name>GzipFilter</filter-name>
  <filter-class>com.cj.gzipflt.GzipFilter</filter-class>
</filter>

<filter-mapping>
  <filter-name>GzipFilter</filter-name>
  <url-pattern>*.jsp</url-pattern>
</filter-mapping>

And downloaded the file gzipflt.jar into tomcathome\lib directory.
I restarted the server and still there is no difference.
Please suggest what i have done wrong
Thanks
Vamsee

-----Original Message-----
From: Hans Bergsten [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 29, 2002 7:08 PM
To: [EMAIL PROTECTED]
Subject: Re: URGENT !!! - Compressing JSP


Bommakanti, Vamsee wrote:
> Hi
> Can any one give me idea about how to compress a JSP output. I am using
> Tomcat for running JSP's
> I looked at gzip but donot know how to use it in a JSP.

Things like that should not be done by the JSP page. A better approach
is to use filter, as described in this article:

   <http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html>

Hans
--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com
JavaServer Pages        http://TheJSPBook.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to