2008/8/26 Hehl, Thomas <[EMAIL PROTECTED]>:
> Again, I'm almost a newb to tiles. Please explain the create a definition
> thing you're referring to below.

Ok let's start from your original definitions:

  <definition name=".logout" extends=".baseDef">
      <put-attribute name="logoutErrorKey"      value="" />
      <put-attribute name="titleKey"            value="logout.title" />
      <put-attribute name="welcomeKey"          value="logout.welcome"/>
      <put-attribute name="menu"
value="/WEB-INF/view/logout_Menu.jsp" />
      <put-attribute name="body"
value="/WEB-INF/view/logout.jsp"/>
  </definition>

  <definition name=".logoutTimeout" extends=".logout">
      <put-attribute name="logoutErrorKey"      value="logout.timeout" />
  </definition>

Essentially you need to assign an attribute in "logout.jsp", present
in "body" attribute inside the ".logout" definition.
So let's define a new definition:

<definition name=".logoutBody" template="/WEB-INF/view/logout.jsp">
      <put-attribute name="logoutErrorKey"      value="logout.timeout" />
</definition>

And let's redefine the ".logoutTimeout" definition:

  <definition name=".logoutTimeout" extends=".logout">
      <put-attribute name="body"      value=".logoutTimeout" />
  </definition>

HTH
Antonio

Reply via email to