A
Andrea Desole
Hi,
after finding in a book, a decided to try to include a jsp page with
jsp:include setting the flush parameter to true. The book ("Core
Servlets and JavaServer Pages", page 271) also says that flush must be
set to true.
However, looking at the specification, I found out that the default
value is false; the specification also says that, when set to true,the
buffer is flushed "now". I also found out that, when set to true, in
case of error Tomcat simply doesn't display what comes after the include
page. I'm used at least to get a stack dump on my browser.
Now, I have two questions:
1) What does exactly "now" mean? Does it mean when the page is included?
Andis there any special reason to set it to true?
2) Why doesn't Tomcat show any error when it's set to true? Even if the
buffer is flushed the stack trace should still be shown.
Of course I solved the problem by setting flush to false, but it would
be nice to know how it works.
Thanks
Andrea
after finding in a book, a decided to try to include a jsp page with
jsp:include setting the flush parameter to true. The book ("Core
Servlets and JavaServer Pages", page 271) also says that flush must be
set to true.
However, looking at the specification, I found out that the default
value is false; the specification also says that, when set to true,the
buffer is flushed "now". I also found out that, when set to true, in
case of error Tomcat simply doesn't display what comes after the include
page. I'm used at least to get a stack dump on my browser.
Now, I have two questions:
1) What does exactly "now" mean? Does it mean when the page is included?
Andis there any special reason to set it to true?
2) Why doesn't Tomcat show any error when it's set to true? Even if the
buffer is flushed the stack trace should still be shown.
Of course I solved the problem by setting flush to false, but it would
be nice to know how it works.
Thanks
Andrea