Your First Cup: An Introduction to the Java EE Platform

ProcedureSetting the Navigation for firstcup

Add a navigation rule to faces-config.xml that forwards the user to response.xhtml when the returned status of the DukeBDay.processBirthday method is success.

  1. With the firstcup project selected in the Projects pane, expand Configuration File and double-click faces-config.xml.

  2. Click PageFlow in the top left corner of the editor pane to display the visual navigation editor.

  3. Select greeting.xhtml click and hold the navigation arrow box on the far right, and drag a navigation arrow to the response.xhtml file.

  4. Double-click the default case1 outcome associated with the navigation arrow and change it to success.

  5. Select File -> Save.