+

Search Tips   |   Advanced Search


JSP tags of the IBM Portlet API

View the descriptions of the JSP tags that are recognized by the portlet container.

The portlet container provides tags for use in portlet JSPs. To make these tags available in a JSP, the following directive is required at the beginning of the JSP:

   <%@ taglib uri="/WEB-INF/tld/portlet.tld" prefix="portletAPI" %>

IBM Portlet API JSP tags are not available if you use the getRequestDispatcher() method of the servlet API to invoke the JSP. Instead, use the PortletContext.include() method of the IBM Portlet API.

The following is a brief description of each tag. See Detailed descriptions of the Portlet API tags for more information.

Tag Description
<portletAPI:if /> Through the attributes of this tag, several conditions can be checked. If the condition is true, the content of the tag is written to the page.
<portletAPI:log /> Writes a string in the portlet log.
<portletAPI:bidi /> This tag is used to support text for bidirectional languages.
<portletAPI:dataLoop /> Loops through all attributes in PortletData of the current concrete portlet instance.
<portletAPI:dataAttribute /> Returns the value of one or more PortletData attributes.
<portletAPI:settingsLoop /> Loops through all attributes in PortletSettings of the current concrete portlet.
<portletAPI:settingsAttribute /> Returns the value of one or more PortletSettings attributes.
<portletAPI:CreateReturnURI /> Create a URI that points to the caller of the portlet.
<portletAPI:createURI /> Create an URI that points to the current portlet with the given parameters.
<portletAPI:URIParameter /> Adds a parameter to the URI of the createURI and CreateReturnURI tags.
<portletAPI:URIAction /> Adds a default action to the URI of the createURI and createReturnURI tags.
<portletAPI:encodeNamespace /> Maps the given string value into this portlet's namespace.
<portletAPI:init /> Provides access to the portletRequest, portletResponse, and portletConfig objects.


Deprecated portlet JSP tags

The following tags have been deprecated.

Deprecated tag Replacement
<portletAPI:encodeURI/> encodeURL() method of the ServletResponse
<portletAPI:text/> <fmt:message/> and <fmt:bundle/> tags of the Java Standard Tag Library (JSTL). See Use JSTL in portlet JSPs for more information.


Related information


Parent topic:

IBM Portlet API