In this step, you will create a Portal Control Page Flow using the Page Flow Wizard and then configure the page flow by directly modifying methods in Source View.
com.bea.p13n.usermgmt.profile.ProfileWrapper var = myControl.login(
aForm.username, aForm.password, super.getRequest()
);
Double-clicking on the logout action will open the Source View to the logout method, shown below:
/** * @jpf:action */ protected Forward logout(LogoutForm form) { myControl.logout(form.getRequest()); return new Forward( "success" ); }
/** * @jpf:action * @jpf:forward name="success" path="index.jsp" */ protected Forward logout(LogoutForm form) { myControl.logout(this.getRequest()); return new Forward( "success" ); }
<netui:anchor action="loginLink"> login </netui:anchor> <netui:form action="logout"> <netui:button type="submit" value="logout" action="logout"></netui:button> </netui:form>The code in red above places a button of type "submit" in the bottom of the page, associates it with the logout action, wraps it inside a netui:form that invokes the action="logout".