net.sf.navigator.taglib.el
Class DisplayMenuTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by net.sf.navigator.taglib.DisplayMenuTag
          extended by net.sf.navigator.taglib.el.DisplayMenuTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag

public class DisplayMenuTag
extends DisplayMenuTag

This tag acts the same as net.sf.navigator.taglib.DisplayMenuTag, except that it allows JSTL Expressions in it's name and target attributes.

Version:
$Revision: 1.6 $ $Date: 2006/07/09 08:08:10 $
Author:
Matt Raible
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sf.navigator.taglib.DisplayMenuTag
log
 
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
 
Constructor Summary
DisplayMenuTag()
           
 
Method Summary
 int doStartTag()
           
 void release()
           
 void setName(String name)
           
protected  void setPageLocation(MenuComponent menu)
          Overrides the setPageLocation in parentTag to use JSTL to evaluate the URL.
 void setTarget(String target)
           
 
Methods inherited from class net.sf.navigator.taglib.DisplayMenuTag
getPage, setLocation
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisplayMenuTag

public DisplayMenuTag()
Method Detail

setName

public void setName(String name)
Overrides:
setName in class DisplayMenuTag

setTarget

public void setTarget(String target)
Overrides:
setTarget in class DisplayMenuTag

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class DisplayMenuTag

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class DisplayMenuTag
Throws:
javax.servlet.jsp.JspException

setPageLocation

protected void setPageLocation(MenuComponent menu)
                        throws MalformedURLException,
                               javax.servlet.jsp.JspException
Overrides the setPageLocation in parentTag to use JSTL to evaluate the URL. It's definitely ugly, so if you have a cleaner way, please let me know!

Overrides:
setPageLocation in class DisplayMenuTag
Parameters:
menu -
Throws:
MalformedURLException
javax.servlet.jsp.JspException


Copyright © 2003-2007 SourceForge. All Rights Reserved.