com.taggercat.tags
Class TemplateTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.taggercat.tags.TemplateTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
public class TemplateTag
- extends javax.servlet.jsp.tagext.BodyTagSupport
This tag is the dynamic version of the Template tag.
Rather than simply including the design-time injected the content
into the page , it can re-generate the body content.
To enable dynamic templates move the templates into the host application,
and process the template request as any other JSP call. In this case,
the template tags are native.
There is no external call to a separate web context to generate the region.
This requires:
1) The template taglib is installed into the application under development;
not into a separate context.
2) The templates are modified to include the tc tag lib declaration.
3) At design you can still inject a version of the region's content into the
page. This would still provide a design time view of the page. The runtime
view will reflect the current state of the meta data definition.
4) When the tag's dynamic attribute is set to false, then the tag's body content is evaluated
as it is now ( as static JSP ).
- See Also:
- Serialized Form
-

| 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 |
int |
doEndTag()
|
int |
doStartTag()
|
java.lang.String |
getGuid()
|
java.lang.String |
getName()
|
java.lang.String |
getUri()
|
boolean |
isDynamic()
|
void |
setDynamic(boolean dynamic)
Sets the dynamic state of the template's region |
void |
setGuid(java.lang.String guid)
|
void |
setName(java.lang.String name)
Sets the name of the template. |
void |
setUri(java.lang.String uri)
Sets the uri of the template. |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doAfterBody, doInitBody, 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 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
TemplateTag
public TemplateTag()
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag- Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
- Throws:
javax.servlet.jsp.JspException
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag- Overrides:
doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
- Throws:
javax.servlet.jsp.JspException
setUri
public void setUri(java.lang.String uri)
- Sets the uri of the template.
- Parameters:
uri - the URI for this template region
setName
public void setName(java.lang.String name)
- Sets the name of the template.
- Parameters:
name - the name of this template region
setDynamic
public void setDynamic(boolean dynamic)
- Sets the dynamic state of the template's region
- Parameters:
dynamic - the dynamic state
getGuid
public java.lang.String getGuid()
setGuid
public void setGuid(java.lang.String guid)
isDynamic
public boolean isDynamic()
getName
public java.lang.String getName()
getUri
public java.lang.String getUri()