APAR status
Closed as program error.
Error description
We have encountered a DynaCache problem that does not work with
the
JSTL <c:import> tag.
Here is the response from WAS development team:
"While using JSTL import tag, JSPWriter is buffering and does
not
flush the data to cache's writer (and through it to the
response's
writer). Whereas, you were setting "flush = true" when using
jsp:
include. Because of this buffering with JSTL, Dynacache does not
know
when the application stopped writing the data to the parent
writer and
this causes the child fragment to appear twice. I'm checking
with the
JSP guys to see whether there is any config to force a flush or
stop
buffering. In the mean time, could you check whether it would be
possible for you to use jsp:include instead of JSTL import tags?
Even
if it is technically possible, it sill would mean updating all
your JSP
files that use import."
Local fix
No work around for now.
Problem summary
****************************************************************
* USERS AFFECTED: All customers of Websphere Application *
* Server who use JSTL <c:import> tag *
* in their web applications. *
****************************************************************
* PROBLEM DESCRIPTION: When a JSP file uses <c:import> tag to *
* import another JSP, the imported JSP is *
* rendered twice on a cache hit *
****************************************************************
* RECOMMENDATION: *
****************************************************************
JSTL's importTag buffers data. It calls rd.include() and then
writes the data returned by rd.include() to the wire. But from
dynacache point of view child's processing is done once
rd.include() is done. So child's contents are also cached as
part of parent cache entry. Because of this child's contents
are rendered twice on a cache hit.
Problem conclusion
By the applying this fix and having <%out.flush();%> around
the <c:import> tags this problem will be fixed.
Temporary fix Comments
APAR information |
APAR number |
PQ83918 |
Reported component name |
WAS NETWRK DEPL |
Reported component ID |
5630A3601 |
Reported release |
00W |
Status |
CLOSED PER |
PE |
NoPE |
HIPER |
NoHIPER |
Special Attention |
NoSpecatt |
Submitted date |
2004-01-29 |
Closed date |
2004-03-16 |
Last modified date |
2004-03-16 |
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
Publications Referenced
Applicable component levels |
R00A PSY |
UP |
R00H PSY |
UP |
R00I PSY |
UP |
R00P PSY |
UP |
R00S PSY |
UP |
R00W PSY |
UP |
|