On Mon, 13 Jan 2003, Jacob Kjome wrote:

> Date: Mon, 13 Jan 2003 16:59:44 -0600
> From: Jacob Kjome <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
>      Jacob Kjome <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: issue setting headers in a filter....
>
>
> I brought this issue up previously in a question about a GZIP servlet filter
> which I had based on an example that was supposed to have worked on
> the Orion server.  I still have gotten nowhere.  The curious thing is
> that it works fine when serving a static html file, but fails when
> serving jsp's or servlets.
>

I didn't exhaustively study your filter (it's got an "if" statement that
determines whether compression will take place -- have you ensured that
all these conditions are satisfied?).  However, one notable difference is
that there's a content length set on the static file (by the default
file-serving servlet), but not from the JSP page.  I wouldn't be surprised
if that turned out to be significant.

Since it looks like you got this filter from Orion's tutorial, you might
want to ask about it there as well.  Or, you could look at the one
included with Tomcat (in the examples webapp) for ideas.

Craig


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to