You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Struts Newsgroup (@Basebeans.com)" <st...@basebeans.com> on 2002/03/27 01:10:01 UTC
Template/flush problems
Subject: Template/flush problems
From: "Sjaak de Mul" <sd...@xs4allNOSPAM.nl>
===
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Template/flush problems
Posted by Cedric Dumoulin <ce...@lifl.fr>.
You can try to use Tiles instead of Templates. You can do this simply by
changing the referenced library for template in the web.xml file, and also adding
the appropriate tiles.jar in your lib directory.
Cedric
"Struts Newsgroup (@Basebeans.com)" wrote:
> Subject: Template/flush problems
> From: "Sjaak de Mul" <sd...@xs4allNOSPAM.nl>
> ===
> 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: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>