Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.RuntimeCollective.webapps.tag
Class UpdateSessionTag  view UpdateSessionTag download UpdateSessionTag.java

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bycom.RuntimeCollective.webapps.tag.UpdateSessionTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

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

Update the webapps Session of the logged on User, if there are any.

The only thing we actually update is the LastUsedDate of the Session.
If there are no User or Session, don't do anything.

Important: This tag must be placed on a jsp page before anything is written to the response. It's safest to always put it at the top.

Version:
$Id: UpdateSessionTag.java,v 1.13 2003/09/30 15:13:19 joe Exp $

Field Summary
protected static boolean quickUpdateRead
           
protected static boolean quickUpdateResult
           
protected static java.lang.String sessionKey
          The key of the session-scope bean we look for.
protected static java.lang.String UPDATED_MESSAGE
           
protected static java.lang.String userKey
          The key of the session-scope bean we look for.
 
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
UpdateSessionTag()
           
 
Method Summary
 int doEndTag()
          Look for a User, and then for its Session.
protected static boolean doingQuickUpdate()
          Whether or not the "doQuickUpdateSession" param has been set to "true".
 int doStartTag()
          Defer our checking until the end of this tag is encountered.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

userKey

protected static java.lang.String userKey
The key of the session-scope bean we look for.


sessionKey

protected static java.lang.String sessionKey
The key of the session-scope bean we look for.


quickUpdateRead

protected static boolean quickUpdateRead

quickUpdateResult

protected static boolean quickUpdateResult

UPDATED_MESSAGE

protected static java.lang.String UPDATED_MESSAGE
Constructor Detail

UpdateSessionTag

public UpdateSessionTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Defer our checking until the end of this tag is encountered.


doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Look for a User, and then for its Session. Update and save the session if there is one.


doingQuickUpdate

protected static boolean doingQuickUpdate()
Whether or not the "doQuickUpdateSession" param has been set to "true".