com.ibm.wps.pe.pc.legacy
Class TagConstants

java.lang.Object
  extended by com.ibm.wps.pe.pc.legacy.TagConstants

Deprecated. since 6.0. Support of the IBM portlet API may be removed in a future release of WebSphere Portal. Use of the Java Portlet API (javax.portlet) is recommended instead.

public final class TagConstants
extends java.lang.Object

Constants that are useful for implementing portlet tags for IBM portlets. This class defines some request attribute names that allow to access IBM portlet API objects in custom portlet JSP tags. The attributes can be retrieved from the ServletRequest that is available to JSPs.
For example, to access the portlet request in a tag, the following code can be used:

 PortletRequest portletRequest = (PortletRequest) pageContext.getRequest().getAttribute(TagConstants.PORTLET_REQUEST)
 
The request attributes are only available inside JSPs that are included by IBM portlets using PortletContext.include, and in tags called by such JSPs. These attributes should only be accesed from tags for IBM portlets, not from JSPs. JSPs should use the JSP variables defined by the <portlet:init/> tag.
JSPs included by JSR portlets can use similar attributes for retrieving JSR portlet API objects; the attribute names for these are defined in the Java Portlet Specification (JSR 168)

Since:
5.1

Field Summary
static java.lang.String PORTLET_CONFIG
          Deprecated. Request attribute name for accessing the portlet config The attribute value is of the type PortletConfig
static java.lang.String PORTLET_REQUEST
          Deprecated. Request attribute name for accessing the portlet request.
static java.lang.String PORTLET_RESPONSE
          Deprecated. Request attribute name for accessing the portlet response The attribute value is of the type PortletResponse
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PORTLET_REQUEST

public static final java.lang.String PORTLET_REQUEST
Deprecated. 
Request attribute name for accessing the portlet request. The attribute value is of the type PortletRequest

See Also:
Constant Field Values

PORTLET_RESPONSE

public static final java.lang.String PORTLET_RESPONSE
Deprecated. 
Request attribute name for accessing the portlet response The attribute value is of the type PortletResponse

See Also:
Constant Field Values

PORTLET_CONFIG

public static final java.lang.String PORTLET_CONFIG
Deprecated. 
Request attribute name for accessing the portlet config The attribute value is of the type PortletConfig

See Also:
Constant Field Values