struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Johnson <>
Subject tile String Buffer bug?
Date Tue, 06 Apr 2004 23:40:12 GMT
When sending an empty tiles:put, struts displays an
uncleared string buffer from a previous request (not
necessarily even the same application)!

This can be replicated with two simple files:
testLayout.jsp and testPage.jsp. Just paste these two
code samples into corresponding pages and drop into
your application container...

<%@ taglib uri="/layouts/struts-tiles.tld"
prefix="tiles" %>
Section 1----------<BR>
<tiles:getAsString name="section1"/>


Section 2----------<BR>
<tiles:getAsString name="section2"/>

<%@ taglib uri="/layouts/struts-tiles.tld"
prefix="tiles" %>
<tiles:insert page="testLayout.jsp" flush="true">
<tiles:put name="section1"></tiles:put>
<tiles:put name="section2">
This is section 2. The current system time is <%=
System.currentTimeMillis() %>

When you hit testPage.jsp and then reload, you will
your last section 2's content in section 1.

Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message