Form-based Login Sample

This sample uses Form-based authentication to login users to the page flow. This sort of authentication should only be used before a user has entered the page flow. If a user has already entered the page flow, you should use the login stategy described in "Shopping Cart" Login.

Concepts Demonstrated by this Sample

Location of Sample Files

In the SamplesApp, the samples are located at:

SamplesApp/WebApp/security/formBasedLogin/formBasedLoginFlow/formBasedLoginFlowController.jpf

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

[BEA_HOME]\weblogic81\samples\workshop\SamplesApp\WebApp\security\formBasedLogin\formBasedLoginFlow\formBasedLoginFlowController.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 SamplesApp/WebApp/security/formBasedLogin/formBasedLoginFlow/formBasedLoginFlowController.jpf in WebLogic Workshop and clicking the Start button or by entering http://localhost:7001/WebApp/security/formBasedLogin/formBasedLoginFlow/formBasedLoginFlowController.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

"Shopping Cart" Login Sample

Role-based Security Sample