org.apache.pluto.driver.tags
Class PortletTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.apache.pluto.driver.tags.PortletTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag

public class PortletTag
extends javax.servlet.jsp.tagext.BodyTagSupport

The portlet tag is used to render a portlet specified by the portlet ID.

See Also:
Portlet.render(javax.portlet.RenderRequest,javax.portlet.RenderResponse), PortletContainer.doRender(PortletWindow, HttpServletRequest, HttpServletResponse), Serialized Form

Field Summary
static int FAILED
          Status constant for failed rendering.
static int SUCCESS
          Status constant for successful rendering.
 
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
 
Constructor Summary
PortletTag()
           
 
Method Summary
 int doStartTag()
          Method invoked when the start tag is encountered.
 java.lang.String getPortletId()
          Returns the portlet ID attribute.
 void setPortletId(java.lang.String portletId)
          Sets the portlet ID attribute.
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, 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
 

Field Detail

FAILED

public static final int FAILED
Status constant for failed rendering.

See Also:
Constant Field Values

SUCCESS

public static final int SUCCESS
Status constant for successful rendering.

See Also:
Constant Field Values
Constructor Detail

PortletTag

public PortletTag()
Method Detail

getPortletId

public java.lang.String getPortletId()
Returns the portlet ID attribute.

Returns:
the portlet ID attribute.

setPortletId

public void setPortletId(java.lang.String portletId)
Sets the portlet ID attribute.

Parameters:
portletId - the portlet ID attribute.

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Method invoked when the start tag is encountered.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException - if an error occurs.


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.