|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
org.mmbase.bridge.jsp.taglib.ContextReferrerTag | +--org.mmbase.bridge.jsp.taglib.ContextTag
A ContextTag is like parentheses, and as such can act as a 'namespace' (if it has an id) or as 'scope' (if it doesn't).
The context can be seen as a container for variables and their values.
(ContextReferrer) Tags living under a context tag can 'register' themselves in the context (by use of the 'id' attribute') and in that way become a variable. Other tags can refer to such variables.
A ContextTag is a ContextReferrer itself too, and therefore it is possible to 'nest' contextes. And perhaps we will also make it possible to treat contextes as variables and e.g. pass them to another page as a whole.
It is also possible to put something into the Context by hand. For that you can use the `ImportTag'.
Writing out the value of a variable can be done with the `Write' Tag.
ImportTag,
WriteTag| Field Summary | |
static int |
LOCATION_COOKIE
|
static int |
LOCATION_MULTIPART
|
static int |
LOCATION_NOTSET
|
static int |
LOCATION_PAGE
|
static int |
LOCATION_PARAMETERS
|
static int |
LOCATION_PARENT
|
static int |
LOCATION_SESSION
|
| Fields inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag |
contextId, PAGE_CATEGORY, pageContextTag, referid |
| Constructor Summary | |
ContextTag()
|
|
| Method Summary | |
int |
doAfterBody()
|
int |
doStartTag()
|
java.lang.Object |
findAndRegister(int from,
java.lang.String referid,
java.lang.String newid)
|
protected java.lang.Object |
findAndRegister(int from,
java.lang.String referid,
java.lang.String newid,
boolean check)
|
java.lang.Object |
findAndRegister(java.lang.String id)
|
java.lang.Object |
findAndRegister(java.lang.String externid,
java.lang.String newid)
Searches a key in request, postparameters, session, parent context and registers it in this one. |
java.lang.String |
findAndRegisterString(java.lang.String id)
|
byte[] |
getBytes(java.lang.String key)
hmm.. |
java.lang.Object |
getContainerObject(java.lang.String key)
|
static boolean |
isContextIdentifierChar(char c)
|
boolean |
isPresent(java.lang.String key)
'present' means 'not null'. |
static java.lang.String |
locationToString(int i)
|
void |
register(java.lang.String newid,
java.lang.Object n)
|
protected void |
register(java.lang.String newid,
java.lang.Object n,
boolean check)
Register an Object with a key in the context. |
void |
registerNode(java.lang.String key,
Node n)
Precisely like 'register', only it wants a Node. |
void |
release()
Release all allocated resources. |
void |
setPageContext(javax.servlet.jsp.PageContext pc)
|
static int |
stringToLocation(java.lang.String s)
|
void |
unRegister(java.lang.String key)
|
| Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag |
findParentTag, findParentTag, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContextTag, getObject, getReferid, getString, setContext, setReferid |
| Field Detail |
public static final int LOCATION_NOTSET
public static final int LOCATION_PAGE
public static final int LOCATION_PARENT
public static final int LOCATION_PARAMETERS
public static final int LOCATION_MULTIPART
public static final int LOCATION_SESSION
public static final int LOCATION_COOKIE
| Constructor Detail |
public ContextTag()
| Method Detail |
public static int stringToLocation(java.lang.String s)
throws javax.servlet.jsp.JspTagException
public static java.lang.String locationToString(int i)
public void release()
ContextReferrerTagrelease in class ContextReferrerTagpublic void setPageContext(javax.servlet.jsp.PageContext pc)
setPageContext in class ContextReferrerTag
public int doStartTag()
throws javax.servlet.jsp.JspTagException
public void registerNode(java.lang.String key,
Node n)
throws javax.servlet.jsp.JspTagException
key - the key (id) of the node to registernode - the node to put in the hashmap
public java.lang.Object findAndRegister(int from,
java.lang.String referid,
java.lang.String newid)
throws javax.servlet.jsp.JspTagException
protected java.lang.Object findAndRegister(int from,
java.lang.String referid,
java.lang.String newid,
boolean check)
throws javax.servlet.jsp.JspTagException
public java.lang.Object findAndRegister(java.lang.String externid,
java.lang.String newid)
throws javax.servlet.jsp.JspTagException
public static boolean isContextIdentifierChar(char c)
protected void register(java.lang.String newid,
java.lang.Object n,
boolean check)
throws javax.servlet.jsp.JspTagException
public void register(java.lang.String newid,
java.lang.Object n)
throws javax.servlet.jsp.JspTagException
public void unRegister(java.lang.String key)
throws javax.servlet.jsp.JspTagException
public boolean isPresent(java.lang.String key)
throws javax.servlet.jsp.JspTagException
public java.lang.Object findAndRegister(java.lang.String id)
throws javax.servlet.jsp.JspTagException
public java.lang.String findAndRegisterString(java.lang.String id)
throws javax.servlet.jsp.JspTagException
public java.lang.Object getContainerObject(java.lang.String key)
throws javax.servlet.jsp.JspTagException
public byte[] getBytes(java.lang.String key)
throws javax.servlet.jsp.JspTagException
public int doAfterBody()
throws javax.servlet.jsp.JspTagException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||