com.taggercat.tags
Class LogoutTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by com.taggercat.tags.LogoutTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class LogoutTag
extends javax.servlet.jsp.tagext.TagSupport

This tag logs the current user out from the application, and closes all associated data sources.

See Also:
Serialized Form
 

Field Summary
 
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
LogoutTag()
           
 
Method Summary
 int doStartTag()
          Logs out the current user from the application.
 void setSave(java.lang.String save)
          Sets the save attribute.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogoutTag

public LogoutTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Logs out the current user from the application.

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

setSave

public void setSave(java.lang.String save)
Sets the save attribute. If save is "true" ( the default value is false) then all data sources are saved before the session is disconnected.

Parameters:
save - the new save value