Tiles

Discussion in 'Java' started by Marcin Go³dyn, May 18, 2005.

  1. 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
     
    Marcin Go³dyn, May 18, 2005
    #1
    1. Advertising

  2. Marcin Go³dyn

    nooobody Guest

    Marcin Go³dyn wrote:

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


    try: <tiles:insert name="tree" ignore="true"/> etc.
     
    nooobody, May 19, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sean Chou

    Struts Tiles

    Sean Chou, Jul 6, 2003, in forum: Java
    Replies:
    1
    Views:
    753
    Sean Chou
    Jul 11, 2003
  2. Jack

    TILES: How to i18n a put

    Jack, Jul 25, 2003, in forum: Java
    Replies:
    0
    Views:
    434
  3. Jack
    Replies:
    7
    Views:
    2,556
  4. Morten Nørgaard
    Replies:
    0
    Views:
    757
    Morten Nørgaard
    Sep 15, 2003
  5. Rich M
    Replies:
    0
    Views:
    2,056
    Rich M
    Mar 5, 2004
Loading...

Share This Page