org.apache.taglibs.session
Class SessionTag
java.lang.Object
|
+--javax.servlet.jsp.tagext.TagSupport
|
+--org.apache.taglibs.session.SessionTag
- All Implemented Interfaces:
- 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
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
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 |
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 |
SessionTag
public SessionTag()
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.
- Overrides:
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
- Returns:
- SKIP_BODY
Copyright ? 2000 Apache Software Foundation. All Rights Reserved.