java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.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 $
|
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 |
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
UpdateSessionTag
public UpdateSessionTag()
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".