net.sf.navigator.taglib
Class UseMenuDisplayerTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
net.sf.navigator.taglib.UseMenuDisplayerTag
- All Implemented Interfaces:
- Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
- Direct Known Subclasses:
- UseMenuDisplayerTag
public class UseMenuDisplayerTag
- extends javax.servlet.jsp.tagext.TagSupport
This is the main tag of Struts Menu and can be used in a JSP as follows:
<menu:useMenuDisplayer name="ListMenu">
<menu:displayMenu name="MyMenu"/>
</menu:useMenuDisplayer>
- Version:
- $Revision: 1.16 $ $Date: 2006/10/04 22:26:02 $
- Author:
- ssayles, mraible
- See Also:
- Serialized Form
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
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 |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PRIVATE_REPOSITORY
public static final String PRIVATE_REPOSITORY
- See Also:
- Constant Field Values
DISPLAYER_KEY
public static final String DISPLAYER_KEY
- See Also:
- Constant Field Values
ROLES_ADAPTER
public static final String ROLES_ADAPTER
- See Also:
- Constant Field Values
MENU_ID
public static final String MENU_ID
- See Also:
- Constant Field Values
messages
protected static ResourceBundle messages
menuDisplayer
protected MenuDisplayer menuDisplayer
localeKey
protected String localeKey
name
protected String name
bundleKey
protected String bundleKey
id
protected String id
rb
protected ResourceBundle rb
UseMenuDisplayerTag
public UseMenuDisplayerTag()
getBundle
public String getBundle()
setBundle
public void setBundle(String bundle)
getConfig
public String getConfig()
setConfig
public void setConfig(String config)
getLocale
public String getLocale()
setLocale
public void setLocale(String locale)
getName
public String getName()
setName
public void setName(String name)
setId
public void setId(String id)
- Overrides:
setId
in class javax.servlet.jsp.tagext.TagSupport
getRepository
public String getRepository()
setRepository
public void setRepository(String repository)
- This method allows users to override the key used to lookup the
repository. If not specified - the default repository is used, which is
"net.sf.navigator.MENU_REPOSITORY" or
UseMenuDisplayerTag.MENU_REPOSITORY_KEY.
- Parameters:
repository
-
getPermissions
public String getPermissions()
- Getter for property permissions.
- Returns:
- Value of property permissions.
setPermissions
public void setPermissions(String permissions)
- Setter for property permissions.
- Parameters:
permissions
- New value of property permissions.
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.TagSupport
- Throws:
javax.servlet.jsp.JspException
getPermissionsAdapter
protected PermissionsAdapter getPermissionsAdapter()
throws javax.servlet.jsp.JspException
- 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.TagSupport
- Throws:
javax.servlet.jsp.JspException
release
public void release()
- Specified by:
release
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
release
in class javax.servlet.jsp.tagext.TagSupport
Copyright © 2003-2007 SourceForge. All Rights Reserved.