Subject: Template/flush problems
From: "Sjaak de Mul" <[EMAIL PROTECTED]>
 ===
Hi,

I ran into problems with an application that uses Struts (1.0.1) templates
that are related to flushing the output buffer,

On a Windows 2000 server (using IBM WSAD 1.0.2) it runs without problems,
but after deploying it on Solaris the screens were all mixed up: the content
of the template was written before the template itself was written to the
output stream. I learned that I had to set the flush attribute to "true"in
the <template:get> tag, in order to force a flush before the include. That
solved some of the problems, but not all.

Then looked for other occurences of include in Struts taglib, and, as a
test, I added flush calls here as well (directly in the Struts taglib,
because the other tags, such as InsertTag don't know the flush attribute).
Now it seems to work OK, but I wonder this is the right way to go. If these
extra flush calls are needed, then why don't the other tags, like the
InsertTag,  have a flush attribute as well?

Is there anyone who experienced the same kind of problems and knows a good
solution?

Thanks,
Sjaak








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

Reply via email to