When you create a new Web project, WebLogic Workshop automatically creates a number of files and other resources for you. One of these files is the page flow controller (JPF) file. We will show how to do this below.
If you want to add an additional page flow to an existing web project, you will need to add a new page flow controller (JPF) file. You can also create a nested page flow in the Flow View of an existing page flow. Both procedures are described below.
Note: You can only have one JPF file per (sub)folder in a Web project. When you add a new page flow, WebLogic Workshop will automatically put the JPF file in a new folder.
To Create a Page Flow in a New Web Project
Before you can create a new web project, the application in which the web project will reside must be open. For information about creating a new application, see How Do I: Create a New Application?
To create a page flow in new web project:
The web project folder is created and a number of files are added, such as the controller file, a resources folder containing for instance the style.css file in the css subfolder, and the WEB-INF folder containing among others the Global.app file in the src/global subfolder.
To Create a New Page Flow in an Existing Project
To create a new page flow in an existing web project:
If you chose the "Basic page flow" option and click Create, the Page Flow Wizard will create the new page flow folder containing a page flow controller file with a begin action method, and a default index.jsp file that together serve as a starting point for your work.
If you chose the "Page flow from a java control" option, select the control you want to use in your web application and click Next. On the next page, select the actions you want to create in the page flow and click Create. The Page Flow Wizard will create the new page flow folder containing a page flow controller file with the action methods you selected, and the associated JSP files. If you need to first create the Java control, cancel the Page Flow Wizard and create the control. For information about creating a Java control, see Working with Java Controls. You might also be interested in How Do I: Create a Database Control Page Flow?
To Create a Nested Page Flow in an Existing Page Flow
You can easily create a new nested page flow in an existing page flow's Flow View. When you follow the below procedure, a new page flow and various action methods to navigate between the two page flows are created.
To create a new nested page flow in an existing page flow:
WebLogic now creates a number of components:
@jpf:forward name="done" return-action="begin"
When you go to the parent page flow's Flow View, you will notice that the
arrow from the corresponding page flow icon now points at the begin
action.