Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Tiles

Reply
Thread Tools

Tiles

 
 
Marcin Go³dyn
Guest
Posts: n/a
 
      05-18-2005
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


 
Reply With Quote
 
 
 
 
nooobody
Guest
Posts: n/a
 
      05-19-2005
Marcin Go³dyn wrote:

> <tiles:insert attribute="tree" ignore="true"/>


try: <tiles:insert name="tree" ignore="true"/> etc.





 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Struts / tiles ignore tag in tiles:insert not working Rich M Java 0 03-05-2004 06:54 PM
drawRenderedImage leads to out of memory error - print as tiles? Morten Nørgaard Java 0 09-15-2003 10:12 AM
TILES: Converting registration page from struts example = nullpointer? Jack Java 7 07-30-2003 02:47 PM
TILES: How to i18n a put Jack Java 0 07-25-2003 01:32 PM
Struts Tiles Sean Chou Java 1 07-10-2003 11:46 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57