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
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