com.cc.framework.taglib.menu
Class ContextTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.cc.framework.taglib.menu.ContextTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class ContextTag
- extends javax.servlet.jsp.tagext.TagSupport
This Tag is used to specify a menu context directly in the JSP-Page. The
application has exactly one menu context per user session. This specifies
which menu option is currently active. This is done by defining the current
menu context path. The menu context can, with this tag, be directly specified
in a JSP-Page, or it is set, in the application, before the call to the
JSP-Page with the method
MenuContext.setPath(java.lang.String)
.
- Since:
- 1.0
- Version:
- $Revision: 1.14 $
- Author:
- Gernot Schulz
- See Also:
- Serialized Form
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
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()
|
void |
setFilter(java.lang.String filter)
Sets the current menu context filter |
void |
setPageContext(javax.servlet.jsp.PageContext pc)
|
void |
setPath(java.lang.String path)
Defines the current menu context path. |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- Serial Version UID
- See Also:
- Constant Field Values
ContextTag
public ContextTag()
- Constructor
setPageContext
public void setPageContext(javax.servlet.jsp.PageContext pc)
- See Also:
Tag.setPageContext(PageContext pc)
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Throws:
javax.servlet.jsp.JspException
- See Also:
Tag.doStartTag()
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Throws:
javax.servlet.jsp.JspException
- See Also:
Tag.doEndTag()
setPath
public void setPath(java.lang.String path)
- Defines the current menu context path. The context path defines which
menu entry is selected. There is a hierarchical menu path assigned to
every menu element (menu or menu option). It is determined across the
menu hierarchy by concatenation of the menu IDs. A menu element should be
considered to be selected when the context path starts with its menu
path.
- Parameters:
path
- The current menu context path.
setFilter
public void setFilter(java.lang.String filter)
- Sets the current menu context filter
- Parameters:
filter
- Filter
Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.