Handling Exceptions Sample

This Page Flow shows how to control navigation after an exception has occured. The @jpf:catch annotation is used to define a central location (showError.jsp) where error information is displayed.

Concepts Demonstrated by this Sample

Location of Sample Files

In the SamplesApp, the samples are located at:

SamplesApp/WebApp/navigation/handleException/HandleExceptionController.jpf

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

[BEA_HOME]\weblogic81\samples\workshop\SamplesApp\WebApp\navigation\handleException\HandleExceptionController.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 page flow either by opening it in WebLogic Workshop and selecting the Start operation or by entering http://localhost:7001/WebApp/navigation/handleException/HandleExceptionController.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.

Related Topics

@jpf:catch Annotation