Package org.opencms.jsp
Class CmsJspTagUser
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- org.opencms.jsp.CmsJspTagUser
-
- All Implemented Interfaces:
java.io.Serializable
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
public class CmsJspTagUser extends javax.servlet.jsp.tagext.TagSupport
Provides access to the data of the currently logged in user.- Since:
- 6.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CmsJspTagUser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
doStartTag()
java.lang.String
getProperty()
Returns the property name.void
release()
void
setProperty(java.lang.String name)
Sets the property name.static java.lang.String
userTagAction(java.lang.String property, javax.servlet.ServletRequest req)
Internal action method.
-
-
-
Constructor Detail
-
CmsJspTagUser
public CmsJspTagUser()
-
-
Method Detail
-
userTagAction
public static java.lang.String userTagAction(java.lang.String property, javax.servlet.ServletRequest req)
Internal action method.- Parameters:
property
- the selected user propertyreq
- the current request- Returns:
- String the value of the selected user property
-
doStartTag
public int doStartTag() throws javax.servlet.jsp.JspException
- Specified by:
doStartTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in classjavax.servlet.jsp.tagext.TagSupport
- Throws:
javax.servlet.jsp.JspException
- See Also:
Tag.doStartTag()
-
getProperty
public java.lang.String getProperty()
Returns the property name.- Returns:
- String the property name
-
release
public void release()
- Specified by:
release
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
release
in classjavax.servlet.jsp.tagext.TagSupport
- See Also:
Tag.release()
-
setProperty
public void setProperty(java.lang.String name)
Sets the property name.- Parameters:
name
- the property name
-
-