# Building a Java Page Flow Application

Page Flows provide an event-driven flow through an application. Page Flows let you separate the user interface code from navigational control and other business logic. For instructions on developing Page Flows, see Developing Page Flow Applications.

## Portal-Specific Setup

In order for URLs to resolve correctly, Java Page Flow support must be enabled in the portal Web project's WEB-INF/netuix-config.xml file, as shown in the following example. Notice the <enable> element is set to true.

    <!-- Enable or disable Pageflow support -->
    <pageflow>
        <enable>true</enable>
    </pageflow>

If this block is not present in netuix-config.xml, do not add it. Without the block, the setting defaults to true.

## Using Page Flows in Portlets

If you are retrieving information from the request within a portlet that uses Page Flow, you may need to get the information from the outer request.

For example, if you use regular HTML tags within Netui form tags:

    <netui:form action="myAction">
        <input type="checkbox" name="test"/>
        <netui:button value="myAction"></netui:button>
    </netui:form>

You need to do the following to retrieve that HTML input value:

    <%@page import="com.bea.wlw.netui.pageflow.scoping.ScopedServletUtils"%>
        <%
        HttpServletRequest outerRequest = ScopedServletUtils.getOuterRequest( request );
        %>
        test: <%=outerReq.getParameter("test")%>

Related Topics

How Do I: Add Portal Functionality to an Existing Page Flow Application?