In this step, you will create a Page Flow that provides navigation from one JSP to another. Then, instead of designating the JSP files as the content url for the portlet, you will designate the .JPF file as the portlet's content node. The Page Flow supports JSP transitions within the portlet.
The tasks in this step are:
The page flow is generated and the PageFlow editor, in the Flow View, appears.
Note that the basic page flow has a begin action and an index.jsp presentation page.
The New Action window appears.
An icon for the goToPage2 action appears in the Page Flow editor.
The goToPage1 action appears in the Page Flow editor.
Your page flow should now look like the following picture. Move the icons into the configuration below to make sure the relationships are correct.
The page flow will appear in the Test Browser:
The page2.jsp appears.
Test the Page Flow in a Portlet
The Portlet Wizard appears.
JSP Examples
The JSPs should appear roughly as follows:
index.jsp<%@ page language="java" contentType="text/html;charset=UTF-8"%>page2.jsp
<%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
<%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
<%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
<netui:html>
<head>
<title>
Web Application Page
</title>
</head>
<body>
<p>
PageFlow page 1
<netui:anchor action="goToPage2">show_goToPage2</netui:anchor>
</p>
</body>
</netui:html>
<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
<%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
<%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
<netui:html>
<head>
<title>
Web Application Page
</title>
</head>
<body>
<p>
PageFlow Page 2
<netui:anchor action="goToPage1">show_goToPage1</netui:anchor>
</p>
</body>
</netui:html>