public class ImportTag extends TagSupport
By default, the imported script does not have access to
the parent script's variable context. This behaviour
may be modified using the inherit
attribute.
body, context, parent
Constructor and Description |
---|
ImportTag()
Create a new Import tag.
|
Modifier and Type | Method and Description |
---|---|
void |
doTag(XMLOutput output)
Perform tag processing
|
boolean |
isInherit() |
void |
setFile(String file)
Sets the file for the script to evaluate.
|
void |
setInherit(boolean inherit)
Sets whether property inheritence is enabled or disabled
|
void |
setUri(String uri)
Sets the URI (relative URI or absolute URL) for the script to evaluate.
|
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException
output
- the destination for outputMissingAttributeException
- if a required attribute is missingJellyTagException
- on any other errorspublic boolean isInherit()
public void setInherit(boolean inherit)
public void setUri(String uri)
public void setFile(String file)
file
- The file to setCopyright © 2014 Apache Software Foundation. All rights reserved.