org.apache.taglibs.session
Class SessionTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byorg.apache.taglibs.session.SessionTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

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

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.

JSP Tag Lib Descriptor

 <name>session</name>
 <tagclass>org.apache.taglibs.session.SessionTag</tagclass>
 <teiclass>org.apache.taglibs.session.SessionTEI</teiclass>
 <bodycontent>empty</bodycontent>
 <info>Used to access general information about session.</info>
   <attribute>
     <name>id</name>
     <required>true</required>
     <rtexprvalue>false</rtexprvalue>
   </attribute>
 

Author:
Glenn Nielsen
See Also:
SessionData, SessionTEI, Serialized Form

Field Summary
 
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
SessionTag()
           
 
Method Summary
 int doStartTag()
          Method called at start of tag, gets HttpSession and creates a script variable of name id.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionTag

public SessionTag()
Method Detail

doStartTag

public final int doStartTag()
                     throws javax.servlet.jsp.JspException
Method called at start of tag, gets HttpSession and creates a script variable of name id.

Returns:
SKIP_BODY
Throws:
javax.servlet.jsp.JspException


Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.