I'm having a little trouble with the tile definition files after working through the tutorial.  As a simple example of what I am hitting, I get the error message:
 
javax.servlet.jsp.JspException: Error - tag useAttribute : attribute 'title' not found in context. Check tag syntax

at org.apache.struts.taglib.tiles.UseAttributeTag.doStartTag(UseAttributeTag.java:225)

at _common._header._jspService(_header.java:50)

[SRC:/common/header.jsp:21]
The relevant section of my definition file looks like this:
 
  <!-- ===================================================================== -->
  <!--                                                                       -->
  <!-- Form Layout                                                           -->
  <!--                                                                       -->
  <!-- ===================================================================== -->
  <definition name="form.layout" page="/layouts/formLayout.jsp">
    <put name="system-short-name" value="TDL"/>
    <put name="user-name" value="Guest"/>
    <put name="title"   value="Form Page Layout"/>
    <put name="header"  value="/common/header.jsp"/>
    <put name="content" value="${content}"/>
    <put name="footer"  value="/common/footer.jsp"/>
  </definition>
  <!-- ===================================================================== -->
  <!--                                                                       -->
  <!-- Security Module Pages                                                 -->
  <!--                                                                       -->
  <!-- ===================================================================== -->
  <definition name="login.form" extends="form.layout">
    <put name="title"   value="Login Form"/>
    <put name="content" value="/security/login.jsp"/>
  </definition>
header.jsp contains the following:
 
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="tiles" uri="/WEB-INF/struts-tiles.tld"%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
...
 
  <tr class="banner">
        <td width="3"></td>
        <td class="system-name" align="left" width="80%">
          <span class="banner-value">TDL&#160;</span>
          <span class="page-title"><tiles:getAsString name="title"/></span>
        </td>
...
 
Comments and suggestions would be greatly appreciated.
Ed
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to