<um:addGroupToGroup> Tag

The <um:addGroupToGroup> tag adds the group corresponding to the provided childGroupName to the group corresponding to the provided groupName. Since a group can only have one parent, any previous relationship with another parent will be destroyed. Both the parent group and the child group must previously exist for proper tag behavior. The tag has no enclosed body.

Execution of this tag requires the logged in user to have administrator rights.

Note: All User Management tags send results to the same file. If you are checking for results, include this import statement at the top of the page: <%@ page import="com.bea.p13n.usermgmt. servlets.jsp.tags.UserManagementTag- Constants" %>

Syntax

<tagName attribute="value" />

Attributes

childGroupName

Required (String) - The name of the child group. Example: "<%=childGroupName%>"

parentGroupName

Optional (String) - The name of the parent group. Example: "<%=parentGroupName%>"

result

Required (String) - The name of an Integer variable to which the result of the add group to group operation is assigned.

Possible values:

Example

This example shows how to use <um:addGroupToGroup> to add a new group of users to an existing group of users.

<um:addGroupToGroup childGroupName="<%=childGroupName%>"        
parentGroupName="<%=parentGroupName%>" 
result="result"/>

Related Topics

<um:addUserToGroup> Tag