Re: servlet filter buffer question
- From: "Matt Humphrey" <matth@xxxxxxxxxxxxxx>
- Date: Mon, 12 Jun 2006 14:47:59 -0400
"Steve" <steve@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:VTWig.23992$%m5.17368@xxxxxxxxxxxx
An update -- it seems like dynamically padding isn't possible -- I don't
see any way to read the size of the written content. But, If I pad the
end of the page with 8192-plus spaces, it "works". So it seems to be
ignoring my buffer size request in the JSP and doing it in 8kb chunks. If
I force the last real content to fill a chunk, that gets written, and the
content gets cut off somewhere in the middle of my padding.
The content-length header isn't always correct because it's sent before the
actual content is sent.. I'm thinking that Tomcat 4.x did the right thing
and looked at the actual size of the content, whereas 5.5 is looking at the
declared buffer size or the content header
BTW, I'm not sure if I understand your question "What function does the
filter chain do here?" If you mean what is the application, I'm sending a
dynamic page and saving a copy of what was sent.
I was just wondering if the filter chain could be interfering with the read
/ write operation--I'm unfamiliar with them. I can't think of anything else
and I'm too unfamiliar with the nuances of Tomcat.
Good luck,
Matt Humphrey matth@xxxxxxxxxxxxxx http://www.iviz.com/
.
- References:
- servlet filter buffer question
- From: Steve
- Re: servlet filter buffer question
- From: Matt Humphrey
- Re: servlet filter buffer question
- From: Steve
- Re: servlet filter buffer question
- From: Matt Humphrey
- Re: servlet filter buffer question
- From: Steve
- Re: servlet filter buffer question
- From: Steve
- servlet filter buffer question
- Prev by Date: Graphic question
- Next by Date: Re: Tomcat won't compile JSP
- Previous by thread: Re: servlet filter buffer question
- Next by thread: Incremental compilation in IDEs
- Index(es):
Relevant Pages
|