|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.cc.framework.taglib.template.PutTag
Tag handler for the put tag. Inserts a JSP-fragment in a
template. The fragment can be specified either as an external JSP-file or
directly in the tag-body. The tag may only be used within a
<template:insert>-tag.
| Field Summary | |
private java.lang.String |
content
The Content |
private boolean |
direct
Output the content literal or as Web Resource |
private java.lang.String |
localeName
Locale Name |
private java.lang.String |
name
Field name |
private static long |
serialVersionUID
Serial Version UID |
| 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 | |
PutTag()
Constructor |
|
| Method Summary | |
int |
doAfterBody()
Save the associated text from the body content (if any). |
int |
doEndTag()
|
int |
doStartTag()
|
void |
release()
|
void |
setContent(java.lang.String content)
Specifies the content of the JSP-fragment. |
void |
setDirect(java.lang.String direct)
This attribute defines whether the contents should be interpreted as a literal or as a reference to an external file |
void |
setLocale(java.lang.String loc)
|
void |
setName(java.lang.String name)
Specifies the logical name of a JSP-fragment. |
void |
setPageContext(javax.servlet.jsp.PageContext arg0)
|
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doInitBody, getBodyContent, getPreviousOut, setBodyContent |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
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 |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setParent |
| Field Detail |
private static final long serialVersionUID
private java.lang.String name
private java.lang.String content
private boolean direct
private java.lang.String localeName
| Constructor Detail |
public PutTag()
| Method Detail |
public void setPageContext(javax.servlet.jsp.PageContext arg0)
setPageContext in interface javax.servlet.jsp.tagext.TagTag.setPageContext(javax.servlet.jsp.PageContext)public void release()
release in interface javax.servlet.jsp.tagext.TagTag.release()
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.Tagjavax.servlet.jsp.JspExceptionTag.doStartTag()
public int doAfterBody()
throws javax.servlet.jsp.JspException
doAfterBody in interface javax.servlet.jsp.tagext.IterationTagjavax.servlet.jsp.JspException - if a JSP exception has occurred
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.Tagjavax.servlet.jsp.JspExceptionTag.doEndTag()public void setContent(java.lang.String content)
Note: If the content-attribute is specified, then the tag-body must be empty.
content - Content
public void setDirect(java.lang.String direct)
throws javax.servlet.jsp.JspException
direct - Direct flag
javax.servlet.jsp.JspException - If the Argument can't be converted to booleanpublic void setName(java.lang.String name)
Note: The name must match with a placeholder in the JSP template used. The template is defined in the enclosing <template:insert>-tag.
name - The logical name of a JSP-fragment.public void setLocale(java.lang.String loc)
loc - Locale
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||