com.darwinsys.jsptags
Class LoggedInUserTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by com.darwinsys.jsptags.LoggedInUserTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag

public class LoggedInUserTag
extends javax.servlet.jsp.tagext.BodyTagSupport

LoggedInUser - include body content if the user is logged in as "user".

Version:
$Id: LoggedInUserTag.java,v 1.6 2006/04/28 22:32:09 ian Exp $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
LoggedInUserTag()
           
 
Method Summary
 int doStartTag()
          Invoked at the tag start transition; does the work
 void setUser(java.lang.String label)
           
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
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
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

LoggedInUserTag

public LoggedInUserTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Invoked at the tag start transition; does the work

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException

setUser

public void setUser(java.lang.String label)
Parameters:
label - The role to check for (e.g., "admin");


Copyright © 1996-2004 Ian F. Darwin. See license.html for usage license.