|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.wps.pe.pc.legacy.TagConstants
public final class TagConstants
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.
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 |
---|
public static final java.lang.String PORTLET_REQUEST
PortletRequest
public static final java.lang.String PORTLET_RESPONSE
PortletResponse
public static final java.lang.String PORTLET_CONFIG
PortletConfig
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |