org.apache.struts.tiles.taglib
Class ImportAttributeTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.apache.struts.tiles.taglib.ImportAttributeTag
All Implemented Interfaces:
Serializable, IterationTag, Tag
Direct Known Subclasses:
ELImportAttributeTag

public class ImportAttributeTag
extends TagSupport

Import attribute from component to requested scope. Attribute name and scope are optional. If not specified, all component attributes are imported in page scope.

See Also:
Serialized Form

Field Summary
protected  boolean isErrorIgnored
          Are errors ignored.
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, 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
ImportAttributeTag()
           
 
Method Summary
 int doEndTag()
          Clean up after processing this enumeration.
 int doStartTag()
          Expose the requested property from component context.
 boolean getIgnore()
          Get ignore flag.
 String getName()
          Get the name.
 String getScope()
          Get scope.
 void release()
          Release all allocated resources.
 void setIgnore(boolean ignore)
          Set ignore flag.
 void setName(String name)
          Set the name.
 void setScope(String scope)
          Set the scope.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isErrorIgnored

protected boolean isErrorIgnored
Are errors ignored. This is the property for attribute ignore. Default value is false, which throws an exception. Only "attribute not found" - errors are ignored.

Constructor Detail

ImportAttributeTag

public ImportAttributeTag()
Method Detail

release

public void release()
Release all allocated resources.

Specified by:
release in interface Tag
Overrides:
release in class TagSupport

getName

public String getName()
Get the name.

Returns:
Name.

setName

public void setName(String name)
Set the name.

Parameters:
name - The new name

setScope

public void setScope(String scope)
Set the scope.

Parameters:
scope - Scope.

getScope

public String getScope()
Get scope.

Returns:
Scope.

setIgnore

public void setIgnore(boolean ignore)
Set ignore flag.

Parameters:
ignore - default: false: Exception is thrown when attribute is not found, set to true to ignore missing attributes silently

getIgnore

public boolean getIgnore()
Get ignore flag.

Returns:
default: false: Exception is thrown when attribute is not found, set to true to ignore missing attributes silently

doStartTag

public int doStartTag()
               throws JspException
Expose the requested property from component context.

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

doEndTag

public int doEndTag()
             throws JspException
Clean up after processing this enumeration.

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


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