org.displaytag.tags
Class TemplateTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.displaytag.tags.TemplateTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- Direct Known Subclasses:
- HtmlTableTag
- public abstract class TemplateTag
- extends javax.servlet.jsp.tagext.BodyTagSupport
Base template class.
- Version:
- $Revision: 1.12 $ ($Author: fgiust $)
- Author:
- bgsmith, Fabrizio Giustina
- See Also:
- Serialized Form
| Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
| 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 |
|
Method Summary |
protected java.lang.Object |
evaluateExpression(java.lang.String expression)
evaluate an expression in a way similar to LE in jstl.
|
void |
write(java.lang.String string)
Utility method. |
void |
write(java.lang.StringBuffer buffer)
Utility method. |
void |
write(java.lang.String string,
javax.servlet.jsp.JspWriter out)
Utility method. |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doAfterBody, doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
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 |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
TemplateTag
public TemplateTag()
write
public void write(java.lang.String string)
- Utility method. Write a string to the default out
- Parameters:
string - String
write
public void write(java.lang.String string,
javax.servlet.jsp.JspWriter out)
- Utility method. Write a string to the given JspWriter
- Parameters:
string - Stringout - JspWriter
write
public void write(java.lang.StringBuffer buffer)
- Utility method. Write a string to the default out
- Parameters:
buffer - StringBuffer
evaluateExpression
protected java.lang.Object evaluateExpression(java.lang.String expression)
throws ObjectLookupException
evaluate an expression in a way similar to LE in jstl.
the first token is supposed to be an object in the page scope (default scope) or one of the following:
- pageScope
- requestScope
- sessionScope
- applicationScope
Tokens after the object name are interpreted as javabean properties (accessed through getters), mapped or indexed
properties, using the jakarta common-beans library
- Parameters:
expression - expression to evaluate
- Returns:
- Object result
- Throws:
ObjectLookupException - if unable to get a bean using the given expression
Copyright © 2002-2005 the Displaytag team. All Rights Reserved.