Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.struts.tiles.taglib
Class DefinitionTag

    java.lang.Object
      javax.servlet.jsp.tagext.TagSupport
          org.apache.struts.tiles.taglib.DefinitionTagSupport
              org.apache.struts.tiles.taglib.DefinitionTag

All Implemented Interfaces:
  Serializable, IterationTag, Tag, PutListTagParent, PutTagParent

Direct Known Subclasses:
  ELDefinitionTag

    public class DefinitionTag

extends DefinitionTagSupport
implements PutTagParent, PutListTagParent

This is the tag handler for <tiles:definition>, which defines a tiles (or template / component). Definition is put in requested context and can be used in <tiles:insert>.

Version:
  $Rev: 471754 $ $Date: 2006-11-06 08:55:09 -0600 (Mon, 06 Nov 2006) $
See Also:
  Serialized Form

Field Summary

Fields inherited from class org.apache.struts.tiles.taglib.DefinitionTagSupport
`controllerName, controllerType, page, role`

Fields inherited from class javax.servlet.jsp.tagext.TagSupport
`pageContext`

Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
`EVAL_BODY_AGAIN`

Fields inherited from interface javax.servlet.jsp.tagext.Tag
`EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE`

Constructor Summary
`DefinitionTag()`

Method Summary
`int` | `doEndTag()` Process the end tag by putting the definition in appropriate context.
`int` | `doStartTag()` Process the start tag by creating a new definition.
`String` | `getExtends()` Get `extends` (parent) definition name.
`String` | `getId()` Get the ID.
`String` | `getScope()` Get the scope.
`void` | `processNestedTag(PutListTag nestedTag)` Process nested ≶putList> tag.
`void` | `processNestedTag(PutTag nestedTag)` Process nested ≶put> tag.
`void` | `putAttribute(String name, Object content)` This method is a convenience for other tags for putting content into the tile definition.
`void` | `release()` Reset member values for reuse.
`protected void` | `releaseInternal()` Release internal references.
`void` | `setExtends(String definitionName)` Set `extends` (parent) definition name.
`void` | `setId(String id)` Set the ID.
`void` | `setScope(String aScope)` Set the scope.

Methods inherited from class org.apache.struts.tiles.taglib.DefinitionTagSupport
`getControllerName, getControllerType, getPage, getRole, getTemplate, setController, setControllerClass, setControllerName, setControllerType, setControllerUrl, setPage, setRole, setTemplate`

Methods inherited from class javax.servlet.jsp.tagext.TagSupport
`doAfterBody, findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DefinitionTag

    public DefinitionTag()

Method Detail

### release

    public void release()

  Reset member values for reuse. This method calls super.release(), which invokes TagSupport.release(), which typically does nothing.

  Specified by:
    `release` in interface `Tag`
  Overrides:
    `release` in class `DefinitionTagSupport`

### releaseInternal

    protected void releaseInternal()

  Release internal references.

### putAttribute

    public void putAttribute(String name,
                             Object content)

  This method is a convenience for other tags for putting content into the tile definition. Content is already typed by caller.

### processNestedTag

    public void processNestedTag(PutTag nestedTag)
                          throws JspException

  Process nested ≶put> tag. Method is called from nested ≶put> tags. Nested list is added to current list. If role is defined, nested attribute is wrapped into an untyped definition containing attribute value and role.

  Specified by:
    `processNestedTag` in interface `PutTagParent`
  Parameters:
    `nestedTag` - Nested tag to process.
  Throws:
    `JspException`

### processNestedTag

    public void processNestedTag(PutListTag nestedTag)
                          throws JspException

  Process nested ≶putList> tag. Method is called from nested ≶putList> tags. Nested list is added to current list. If role is defined, nested attribute is wrapped into an untyped definition containing attribute value and role.

  Specified by:
    `processNestedTag` in interface `PutListTagParent`
  Parameters:
    `nestedTag` - Nested PutTag defining the attribute.
  Throws:
    `JspException`

### getId

    public String getId()

  Get the ID.

  Overrides:
    `getId` in class `TagSupport`
  Returns:
    ID

### setId

    public void setId(String id)

  Set the ID.

  Overrides:
    `setId` in class `TagSupport`
  Parameters:
    `id` - New ID.

### getScope

    public String getScope()

  Get the scope.

  Returns:
    Scope.

### setScope

    public void setScope(String aScope)

  Set the scope.

  Parameters:
    `aScope` - Scope.

### setExtends

    public void setExtends(String definitionName)

  Set `extends` (parent) definition name.

  Parameters:
    `definitionName` - Name of parent definition.

### getExtends

    public String getExtends()

  Get `extends` (parent) definition name.

  Returns:
    Name of parent definition.

### doStartTag

    public int doStartTag()
                   throws JspException

  Process the start tag by creating a new definition.

  Specified by:
    `doStartTag` in interface `Tag`
  Overrides:
    `doStartTag` in class `TagSupport`
  Throws:
    `JspException` - On errors processing tag.

### doEndTag

    public int doEndTag()
                 throws JspException

  Process the end tag by putting the definition in appropriate context.

  Specified by:
    `doEndTag` in interface `Tag`
  Overrides:
    `doEndTag` in class `TagSupport`
  Throws:
    `JspException` - On errors processing tag.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.