com.jivesoftware.base.tags
Class AuthorTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.opensymphony.webwork.views.jsp.WebWorkBodyTagSupport
com.opensymphony.webwork.views.jsp.ComponentTagSupport
com.jivesoftware.base.tags.AuthorTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
public class AuthorTag
- extends com.opensymphony.webwork.views.jsp.ComponentTagSupport
A JSP tag to print out the appropriate string for an author (guest vs name vs username).
This tag is written as an empty tag (< .. />), so bodies will be skipped.
Usage:
<%-- Register the taglib --%>
<%@ taglib uri="jivetags" prefix="jive" %>
...
<%-- Get the author string --%>
<jive:author obj="source object" profilePageUrl="some url" />
Attributes: Name | Required |
obj | Yes |
profilePageUrl | Yes |
- See Also:
- Serialized Form
Fields inherited from class com.opensymphony.webwork.views.jsp.ComponentTagSupport |
component |
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
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 |
Method Summary |
com.opensymphony.webwork.components.Component |
getBean(com.opensymphony.xwork.util.OgnlValueStack stack,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
protected void |
populateParams()
|
void |
setProfilePageUrl(java.lang.String profilePageUrl)
|
Methods inherited from class com.opensymphony.webwork.views.jsp.ComponentTagSupport |
doEndTag, doStartTag, getComponent |
Methods inherited from class com.opensymphony.webwork.views.jsp.WebWorkBodyTagSupport |
altSyntax, findString, findValue, findValue, getBody, getStack, setId, toString, translateVariables |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
AuthorTag
public AuthorTag()
getBean
public com.opensymphony.webwork.components.Component getBean(com.opensymphony.xwork.util.OgnlValueStack stack,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
- Specified by:
getBean
in class com.opensymphony.webwork.views.jsp.ComponentTagSupport
populateParams
protected void populateParams()
- Overrides:
populateParams
in class com.opensymphony.webwork.views.jsp.ComponentTagSupport
setProfilePageUrl
public void setProfilePageUrl(java.lang.String profilePageUrl)
Copyright © 1999-2006 Jive Software.