|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
org.mmbase.bridge.jsp.taglib.ContextReferrerTag
If you want to have attributes which obtain the value from a parameter or other context variable, or if you want to be able to refer to other tags, then your tag can extend from this one.
ContextTag| Field Summary | |
protected java.lang.String |
contextId
|
static java.lang.String |
PAGE_CATEGORY
|
protected ContextTag |
pageContextTag
|
protected java.lang.String |
referid
|
| Constructor Summary | |
ContextReferrerTag()
|
|
| Method Summary | |
protected javax.servlet.jsp.tagext.TagSupport |
findParentTag(java.lang.String classname,
java.lang.String id)
|
protected javax.servlet.jsp.tagext.TagSupport |
findParentTag(java.lang.String classname,
java.lang.String id,
boolean exception)
Finds a parent tag by class and id. |
protected java.lang.Boolean |
getAttributeBoolean(java.lang.String b)
Like getAttributeValue but converts the result to a Boolean, and throws an exception if this cannot be done. |
protected java.lang.Integer |
getAttributeInteger(java.lang.String i)
Like getAttributeValue but converts the result to an Integer, and throws an exception if this cannot be done. |
protected java.lang.Integer |
getAttributeInteger(java.lang.String i,
int def)
|
java.lang.String |
getAttributeValue(java.lang.String attribute)
Call this function in your set-attribute function. |
protected ContextTag |
getContextTag()
Finds the parent context tag. |
protected java.lang.Object |
getObject(java.lang.String key)
Gets an object from the Context. |
protected java.lang.String |
getReferid()
|
protected java.lang.String |
getString(java.lang.String key)
Gets an object from the Context, and returns it as a String. |
void |
release()
Release all allocated resources. |
void |
setContext(java.lang.String c)
Refer to a specific context. |
void |
setPageContext(javax.servlet.jsp.PageContext pc)
|
void |
setReferid(java.lang.String r)
ContextReferrers normally can have the attribute 'referid'. |
| Field Detail |
public static final java.lang.String PAGE_CATEGORY
protected ContextTag pageContextTag
protected java.lang.String contextId
protected java.lang.String referid
| Constructor Detail |
public ContextReferrerTag()
| Method Detail |
public void setPageContext(javax.servlet.jsp.PageContext pc)
public void setReferid(java.lang.String r)
throws javax.servlet.jsp.JspTagException
protected java.lang.String getReferid()
throws javax.servlet.jsp.JspTagException
public void release()
public void setContext(java.lang.String c)
public java.lang.String getAttributeValue(java.lang.String attribute)
throws javax.servlet.jsp.JspTagException
protected java.lang.Boolean getAttributeBoolean(java.lang.String b)
throws javax.servlet.jsp.JspTagException
protected java.lang.Integer getAttributeInteger(java.lang.String i)
throws javax.servlet.jsp.JspTagException
protected java.lang.Integer getAttributeInteger(java.lang.String i,
int def)
throws javax.servlet.jsp.JspTagException
protected final javax.servlet.jsp.tagext.TagSupport findParentTag(java.lang.String classname,
java.lang.String id,
boolean exception)
throws javax.servlet.jsp.JspTagException
classname - the classname of the Tag to find.id - the id of the Tag to find.exception - if it has to throw an exception if the parent can not be found (default: yes).
protected final javax.servlet.jsp.tagext.TagSupport findParentTag(java.lang.String classname,
java.lang.String id)
throws javax.servlet.jsp.JspTagException
protected ContextTag getContextTag()
throws javax.servlet.jsp.JspTagException
protected java.lang.Object getObject(java.lang.String key)
throws javax.servlet.jsp.JspTagException
protected java.lang.String getString(java.lang.String key)
throws javax.servlet.jsp.JspTagException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||