Now we've got somethings. Thanks Pawel.
Now I get a stack trace and the page rendered is not that of
test.action and test.layout but that of test2.action which renders the
test2.layout tile.
Here is the beginning of the stack:
Nov 19, 2007 3:14:35 PM org.apache.tiles.impl.BasicTilesContainer render
SEVERE: Error rendering tile
java.io.IOException: Stream closed
at
org.apache.jasper.runtime.JspWriterImpl.ensureOpen(JspWriterImpl.java:204)
at
org.apache.jasper.runtime.JspWriterImpl.clearBuffer(JspWriterImpl.java:160)
at org.apache.jsp.testlayout_jsp._jspService(testlayout_jsp.java:78)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
Here are the relevant JSPs:
testlayout.jsp
---------------------
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<tiles:importAttribute name="menuclass"/>
<html>
<body>
test layout
<hr/>
<tiles:insertAttribute name="menuclass"/>
<hr/>
<tiles:insertTemplate template="/bottom.jsp">
<tiles:putAttribute name="menuclass" value="${menuclass}"/>
</tiles:insertTemplate>
<hr/>
<tiles:insertTemplate template="/test2.action">
</tiles:insertTemplate>
</body>
</html>
test2layout.jsp
-----------------------
test2layout jsp page
bottom.jsp
---------------
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<tiles:importAttribute name="menuclass" ignore="true"/>
bottom jsp page
<br/>
menuclass: <tiles:insertAttribute name="menuclass"/>
<hr/>
On 11/19/07, Pawel Kozlowski <[EMAIL PROTECTED]> wrote:
> Hi,
>
> It may be a long shot but I remember having similar problems. In may case
> the thing was that the include request was not processed by a filter.
> Tweaking web.xml did
> the trick:
>
> <filter-mapping>
> <filter-name>struts</filter-name>
> <url-pattern>/*</url-pattern>
> <dispatcher>REQUEST</dispatcher>
> <dispatcher>FORWARD</dispatcher>
> <dispatcher>INCLUDE</dispatcher>
> </filter-mapping>
>
> Hope this helps…
>
> Cheers,
> Pawel
>
> "doktora v" <[EMAIL PROTECTED]> wrote on 19/11/2007 16:03:00:
>
> > Same results with servlet 2.4 and all jars included:
> >
> > http://www.speedyshare.com/639139472.html
> >
> > I've deployed this war on a clean tomcat 5.5.25.
> > There are not errors in any of the logs.
>
>