Role-based Security Sample

This sample shows how to filter access to a Page Flow based on the user's role membership.

Concepts Demonstrated by this Sample

Location of Sample Files

In the SamplesApp, the samples are located at:

SamplesApp/WebApp/security/roleBasedSecurity/roleBasedSecurityController.jpf

On the local file system, the samples are located at:

[BEA_HOME]\weblogic81\samples\workshop\SamplesApp\WebApp\security\roleBasedSecurity\roleBasedSecurityController.jpf

To Run the Samples

  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 page flows either by opening security/roleBasedSecurity/roleBasedSecurityController.jpf in WebLogic Workshop and clicking the Start button or by entering http://localhost:7001/WebApp/security/roleBasedSecurity/roleBasedSecurityController.jpf in the address bar of your browser.

    If WebLogic Server is running in the Workshop domain on your machine, you may click here to run the Form Based sample.

Related Topics

Form-based Login Sample

"Shopping Cart" Login Sample