Fazer o Basicão do Tiles funcionar

3 respostas
cu_ringa

Alguem conseguiu colocar o tutorial de Tiles do site oficial p rodar. aquele da pagina q começa com a definição dessa pagina:

<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<html>
  <head>
    <title><tiles:getAsString name="title"/></title>
  </head>
  <body>
        <table>
      <tr>
        <td colspan="2">
          <tiles:insertAttribute name="header" />
        </td>
      </tr>
      <tr>
        <td>
          <tiles:insertAttribute name="menu" />
        </td>
        <td>
          <tiles:insertAttribute name="body" />
        </td>
      </tr>
      <tr>
        <td colspan="2">
          <tiles:insertAttribute name="footer" />
        </td>
      </tr>
    </table>
  </body>
</html>

Só da erro.
Falando q os atributos n sao encontrados.

22/05/2008 23:35:22 org.apache.tiles.jsp.taglib.RoleSecurityTagSupport doEndTag
SEVERE: Error executing tag: Attribute 'title' not found.
org.apache.tiles.TilesException: Attribute 'title' not found.

Se alguem conseguir fz esse milagre por favor me avise. Mandei um post anterior a esse e então resiolvi fz o programa Basicão mesmo assim nada de funcionar.

3 Respostas

cristianomariano

Você colocou as definições no arquivo /WEB-INF/tiles-defs.xml ?

Aldrin_Leal

Você pode conferir o manual.

cu_ringa

já fiz de tudo. manual só se passar mais um dia olhando pq é só oq fiz no feriado…

cofigurei já o tiles-des.xml dentro de WEB-INF.

por favor alguem tente fz ai o basicão q ele mostra p ver se eu q tou fznd alguma coisa de errado ou se tem alguma coisa errado com as config q ele manda lá no site.

a pag. é essa: http://tiles.apache.org/tutorial/basic/pages.html

Criado 22 de maio de 2008
Ultima resposta 23 de mai. de 2008
Respostas 3
Participantes 3