org.apache.taglibs.session
Class SessionData

java.lang.Object
  |
  +--org.apache.taglibs.session.SessionData

public class SessionData
extends java.lang.Object

Used to store the scripting variable data provided by the JSP Tag session, used to access HttpSession information using the standard JSP <jsp:getProperty> tag.

The script variable of name id is available for use during processing of the remainder of the JSP page.

Author:
Glenn Nielsen
See Also:
SessionTag

Method Summary
 java.lang.String getCreationTime()
          Returns the time when this session was created, measured in milliseconds since midnight January 1, 1970 GMT as a String.
 java.lang.String getLastAccessedTime()
          Returns the last time the client sent a request associated with this session, as the number of milliseconds since midnight January 1, 1970 GMT as a String.
 java.lang.String getMaxInactiveInterval()
          Returns the maximum time interval, in seconds, that the servlet container will keep this session open between client accesses.
 java.lang.String getSessionId()
          Returns a string containing the unique identifier assigned to this session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCreationTime

public final java.lang.String getCreationTime()
Returns the time when this session was created, measured in milliseconds since midnight January 1, 1970 GMT as a String.

<jsp:getProperty name="id" property="creationTime"/>

Returns:
String - creation of session in milliseconds

getSessionId

public final java.lang.String getSessionId()
Returns a string containing the unique identifier assigned to this session.

<jsp:getProperty name="id" property="sessionId"/>

Returns:
String - session id

getLastAccessedTime

public final java.lang.String getLastAccessedTime()
Returns the last time the client sent a request associated with this session, as the number of milliseconds since midnight January 1, 1970 GMT as a String.

<jsp:getProperty name="id" property="lastAccessedTime"/>

Returns:
String - last time session was accessed in milliseconds

getMaxInactiveInterval

public final java.lang.String getMaxInactiveInterval()
Returns the maximum time interval, in seconds, that the servlet container will keep this session open between client accesses.

<jsp:getProperty name="id" property="maxInactiveInterval"/>

Returns:
String - the maximum inactive interval in seconds


Copyright ? 2000 Apache Software Foundation. All Rights Reserved.