# Step 5: Create an EJB Control Page Flow Portlet

In this step you create a Page Flow portlet, add a Personalization Control, and edit properties on the Control.

The tasks in this step are:

- Create an EJB Control Page Flow
- Place the Page Flow into a Portlet, Place Portlet in a Portal

Create a New Page Flow

1. From within the Project tab in your Web application, right-click on the portlets directory and create a new Page Flow. Name the Page Flow checkuserGroup.
2. In the Page Flow Wizard, select Page flow from a java control.
3. Select the GroupManager control. Click Next.

4. From the list of Potential Actions, select getGroupNamesForUser. Click Create.

5. The wizard creates an index.jsp page with a link to the getGroupNamesForUser action that invokes the control.

Place the Page Flow into a Portlet, Place Portlet in a Portal

1. With the Portal open in Design View, drag the checkUserGroupController.jpf into a placeholder in the portal.
2. The Portlet Wizard presents a prompt offering to create a portlet from this resource. Click Yes.
3. The Portlet Details screen appears. Click Finish.
4. Preview the portlet by navigating to http://<host>:<port>YourWebappp/portal.portal.
5. Click on the getGroupNamesForUser link, enter a username and click Submit.

6. In this example, user weblogic is a member of the groups Administrators and PortalSystemAdministrators.

Click on the arrow below to go back in the tutorial: