|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.apache.struts.taglib.tiles.DefinitionTagSupport
org.apache.struts.taglib.tiles.InsertTag
org.apache.struts.taglib.tiles.GetTag
org.apache.strutsel.taglib.tiles.ELGetTag
This is the tag handler for <tiles-el:get>, which gets
content from the request scope and either includes the content or prints
it, depending upon the value of the content's direct
attribute.
This tag is intended to be compatible with the same tag from Templates
(David Geary). Implementation extends InsertTag for facility (no so well).
The only difference is the default value of attribute 'ignore', which is
true
for this tag (default behavior of David Geary's
templates).
This class is a subclass of the class
org.apache.struts.taglib.tiles.GetTag
which provides most of
the described functionality. This subclass allows all attribute values to
be specified as expressions utilizing the JavaServer Pages Standard Library
expression language.
Nested Class Summary |
Nested classes inherited from class org.apache.struts.taglib.tiles.InsertTag |
org.apache.struts.taglib.tiles.InsertTag.DirectStringHandler, org.apache.struts.taglib.tiles.InsertTag.InsertHandler, org.apache.struts.taglib.tiles.InsertTag.TagHandler |
Field Summary | |
private java.lang.String |
flushExpr
Instance variable mapped to "flush" tag attribute. |
private java.lang.String |
ignoreExpr
Instance variable mapped to "ignore" tag attribute. |
private java.lang.String |
nameExpr
Instance variable mapped to "name" tag attribute. |
private java.lang.String |
roleExpr
Instance variable mapped to "role" tag attribute. |
Fields inherited from class org.apache.struts.taglib.tiles.InsertTag |
attribute, beanName, beanProperty, beanScope, cachedCurrentContext, definitionName, flush, isErrorIgnored, log, name, pageContext, processEndTag, ROLE_DELIMITER, tagHandler |
Fields inherited from class org.apache.struts.taglib.tiles.DefinitionTagSupport |
controllerName, controllerType, page, role |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id |
Fields inherited from interface org.apache.struts.taglib.tiles.ComponentConstants |
COMPONENT_CONTEXT, COMPONENT_SCOPE, EXCEPTION_KEY, LOCALE_KEY |
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 | |
ELGetTag()
|
Method Summary | |
int |
doStartTag()
Process the start tag. |
private void |
evaluateExpressions()
Processes all attribute values which use the JSTL expression evaluation engine to determine their values. |
java.lang.String |
getFlushExpr()
Getter method for "flush" tag attribute. |
java.lang.String |
getIgnoreExpr()
Getter method for "ignore" tag attribute. |
java.lang.String |
getNameExpr()
Getter method for "name" tag attribute. |
java.lang.String |
getRoleExpr()
Getter method for "role" tag attribute. |
void |
release()
Resets attribute values for tag reuse. |
void |
setFlushExpr(java.lang.String flushExpr)
Setter method for "flush" tag attribute. |
void |
setIgnoreExpr(java.lang.String ignoreExpr)
Setter method for "ignore" tag attribute. |
void |
setNameExpr(java.lang.String nameExpr)
Setter method for "name" tag attribute. |
void |
setRoleExpr(java.lang.String roleExpr)
Setter method for "role" tag attribute. |
Methods inherited from class org.apache.struts.taglib.tiles.InsertTag |
createTagHandler, doEndTag, doInclude, getBeanName, getBeanProperty, getBeanScope, getDefinitionName, getFlush, getIgnore, getName, getPageContext, processAsDefinitionOrURL, processAttribute, processBean, processDefinition, processDefinitionName, processName, processNestedTag, processNestedTag, processObjectValue, processTypedAttribute, processUrl, putAttribute, putAttribute, releaseInternal, setAttribute, setBeanName, setBeanProperty, setBeanScope, setComponent, setDefinition, setFlush, setFlush, setIgnore, setName, setPageContext, userHasRole |
Methods inherited from class org.apache.struts.taglib.tiles.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, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String nameExpr
private java.lang.String ignoreExpr
private java.lang.String flushExpr
private java.lang.String roleExpr
Constructor Detail |
public ELGetTag()
Method Detail |
public java.lang.String getNameExpr()
public java.lang.String getIgnoreExpr()
public java.lang.String getFlushExpr()
public java.lang.String getRoleExpr()
public void setNameExpr(java.lang.String nameExpr)
public void setIgnoreExpr(java.lang.String ignoreExpr)
public void setFlushExpr(java.lang.String flushExpr)
public void setRoleExpr(java.lang.String roleExpr)
public void release()
public int doStartTag() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
- if a JSP exception has occurredprivate void evaluateExpressions() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
- if a JSP exception has occurred
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |