Define Navigation in the Controller file, not the JSPs Sample

A Page Flow that demonstrates how to control navigation from the action methods in a Controller file, instead of hard-coding navigation in the presentation-layer JSP files.

Concepts Demonstrated by this Sample

Location of Sample Files

In the SamplesApp, the sample is located at:

SamplesApp/WebApp/navigation/controllerFileNavigation/controllerFileNavigationController.jpf

On the local file system, the sample is located at:

BEA_HOME\weblogic81\samples\workshop\SamplesApp\WebApp\navigation\controllerFileNavigation\controllerFileNavigationController.jpf

To Run the Sample

  1. Start WebLogic Server in the Workshop domain.

    • On Microsoft Windows systems, run

      BEA_HOME/weblogic81/samples/domains/workshop/startWebLogic.cmd

    • On Linux or Solaris systems, run:

      BEA_HOME/weblogic81/samples/domains/workshop/startWebLogic.sh

  2. Launch the service either by opening it in WebLogic Workshop and clicking the Start button or by entering http://localhost:7001/WebApp/navigation/controllerFileNavigation/controllerFileNavigationController.jpf in the address bar of your browser. If WebLogic Server is running in the Workshop domain on this machine, you may click here to run the sample.

  3. Click Let's Go!.

Related Topics

How Do I: Define an Action That Forwards Users to Another Page?