![]() |
![]() |
|
|
Portal Management JSP Tag Library Reference
The Portal Management component includes JSP tags for access to the fundamental data comprising a portal, such as portal and portlet properties.
To import the Portal Management JSP tags, use the following code:
<%@ taglib uri="esp.tld" prefix="esp" %>
Note: In the following tables, the Required column specifies if the attribute is required (yes) or optional (no). In the R/C column, C means that the attribute is a Compile time expression, and R means that the attribute can be either a Request time expression or a Compile time expression.
<esp:eval>
The <esp:eval> tag (Table 8-1) is used to evaluate a conditional attribute of a portlet, for example, isMinimizeable. The tag expects a com.beasys.portal.Portlet to be accessible in the session with the key PortalTagConstants.PORTLET. If the conditional attribute evaluates to true, the body of the <esp:eval> tag is processed. Otherwise, it is not.
Example
<%@ taglib uri="esp.tld" prefix="esp" %>
.
.
.
<esp:eval tag="isMinimizable">
<% titleBar.include(minimizeButton); %>
</esp:eval>
<esp:get>
The <esp:get> tag (Table 8-2) retrieves a String attribute of a portlet. This tag expects a com.beasys.portal.Portlet to be accessible in the session with the key PortalTagConstants.PORTLET.
Example
.
.
.
<tr>
<td>
<esp:get tag="title"/>
</td>
</tr>
<esp:getGroupsForPortal>
The <esp:getGroupsForPortal> tag (Table 8-3) retrieves the names of the groups associated with a Portal. The results are put into the variable declared in the id attribute of the tag, which is a String array.
Example
<%@ taglib uri="esp.tld" prefix="esp" %>
.
.
.
<esp:getGroupsForPortal id ="groups" portalName="<%=portalName%>">
for (i=0;i<groups.length;i++)
{
String groupName = groups[i];
}
</esp:getGroupsForPortal>
<esp:monitorSession>
The <esp:monitorSession> tag (Table 8-4) can be added to the beginning of any JSP page to disallow access to the page if the session is not valid or if the user is not logged in.
Example
<%@ taglib uri="esp.tld" prefix="esp" %>
.
.
.
<esp:monitorSession loginRequired="true" />
<esp:portalManager>
The <esp:portalManager> tag (Table 8-5) is used to perform create, get, getColumnInfo, update, and remove actions on com.beasys.portal.Portal objects. This tag is an empty tag.
Example
<%@ taglib uri="esp.tld" prefix="esp" %>
.
.
.
<esp:portalManager id="portal" action="get" portalName="BEAPortal"/>
<esp:portletManager>
The <esp:portletManager> tag(Table 8-6) is used to perform create, get, getArranged, update, and remove actions on com.beasys.portal.Portlet objects. This tag is an empty tag.
Example
<%@ taglib uri="esp.tld" prefix="esp" %>
.
.
.
<esp:portletManager id="arrangedPortlets" action="getArranged" userId="myUser" portalName="myPortal"/>
<esp:props>
The <esp:props> tag (Table 8-7) is used to get a property from the Portal Properties bean. The Portal Properties bean's deployment descriptor contains default values used by the Portal Administration Tool.
Example
<%@ taglib uri="esp.tld" prefix="esp" %>
.
.
.
<esp:props id="headerURL" propertyName="commerce.default.portal.headerURL" />
![]() |
![]() |
|
Copyright © 2001 BEA Systems, Inc. All rights reserved.
|