# Page Flow Icon

The Page Flow icon represents another page flow in this web project that will be loaded when an action method runs.

In the following page flow, a done() action method includes an annotation with a path to a /Controller.jpf file that resides in the web application's root directory:

The generated code is as follows:

        /**
         * @jpf:action
         * @jpf:forward name="toSamplesJPF" path="/Controller.jpf"
         *
        public Forward done()
        {
            return new Forward( "toSamplesJPF" );
        }

In some cases the page flow icon will appear without the orange arrow like this:

In this case the page flow represented by the icon returns to the parent flow by calling an action method of the parent page flow, and not by calling the parent JPF file directly. This is graphically represented in the child page flow like this:

The generated code in the child page flow is as follows:

/**
* @jpf:action
* @jpf:forward name="done" return-action="begin"
*/
public Forward done()
{
return new Forward( "done" );
}

Notice that return-action is used instead of path in the jpf:forward tag. In the example above the begin method of the parent page flow is called.

Related Topics

Action Icon

Begin Action Icon

Exit Icon

JavaServer Page (JSP) Icon

Return to Action Icon

Return to Page Icon

Guide to Building Page Flows

Page Flow and JSP Reference