Tiles

M

Marcin Go³dyn

Hi
I`ve got this problem using Tiles.

this are my sources
Layout.jsp
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

<tiles:insert definition="MojaDefinicja" />

<html:html locale="true">
<head>
<title><tiles:getAsString name="title" ignore="true"/></title>
</head>
<body>
<table border="0" width="100%" cellspacing="5">
<tr>
<td colspan="2"><tiles:insert attribute="header" ignore="true"/>
</tr>
<tr>
<td width="140" valign="top">
<tiles:insert attribute="tree" ignore="true"/>
</td>
<td valign="top" align="left">
<tiles:insert attribute="body" ignore="true"/>
</td>
</tr>
<tr>
<td colspan="2">
<tiles:insert attribute="footer" ignore="true"/>
</td>
</tr>
</table>
</body>
</html:html>

and my tiles definition file Tiles-config.xml

?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles
Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
<tiles-definitions>
<definition name="MojaDefinicja" path="/pages/MyLayout.jsp">
<put name="header" value="/header.html" />
<put name="tree" value="/tree.html" />
<put name="title" value="Xindice Database Manager"/>
<put name="body" value="/footer.html" />
<put name="footer" value="/footer.html" />
</definition>
</tiles-definitions>

when i try to open this page i get following exception from Tomcat server:

ApplicationDispatcher[/PracaMag] Servlet.service() for servlet jsp threw
exception
java.lang.StackOverflowError

only title attribute works fine

thx for any help
Marcin Goldyn
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,782
Latest member
ThomasGex

Latest Threads

Top