org.alphadisplaytag.tags
Class TemplateTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byorg.alphadisplaytag.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:
AlphabeticTableTag

public abstract class TemplateTag
extends javax.servlet.jsp.tagext.BodyTagSupport

Base template class.

Version:
$Revision: 1.8 $ ($Author: fgiust $)
Author:
bgsmith
See Also:
Serialized Form

Field Summary
 
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
 
Constructor Summary
TemplateTag()
           
 
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.
 
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
 

Constructor Detail

TemplateTag

public TemplateTag()
Method Detail

write

public void write(java.lang.String string)
           throws javax.servlet.jsp.JspTagException
Utility method. Write a string to the default out

Parameters:
string - String
Throws:
javax.servlet.jsp.JspTagException - if an IOException occurs

write

public void write(java.lang.StringBuffer buffer)
           throws javax.servlet.jsp.JspTagException
Utility method. Write a string to the default out

Parameters:
buffer - StringBuffer
Throws:
javax.servlet.jsp.JspTagException - if an IOException occurs

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:

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


Alphabetical Navigation Bar Java Display Tag Home Page. 

My Home Page. Contact me at: chauvetp@hotmail.com.
I am alway looking for Java/J2EE work and would appreciate the business. Some of my design is inspired by the original display tag <display:*> code. Please go to http://displaytag.sourceforge.net/ for details on the <display:*> tag.

Copyright © 2004 Aiki Innovations Inc. Permission is granted to reuse and distribute for commercial or personal use if no extensive monetary gain is received. Java and the Java Standard Tag Library are programming languages owed by Sun Microsystems, Inc: http://java.sun.com/products/jsp/jstl/