## Page Flow Annotations

The page flow annotations used in web applications define the behavior of the page flow controller class and its methods.

@jpf:action Annotation

Designates an action method. Optionally, this annotation may set login and J2EE role requirements. Without a @jpf:action annotation, an action method will not be recognized by the page flow runtime as an action method. This annotation may be used at the method-level only.

@jpf:catch Annotation

Provides information used by the page flow runtime to catch exceptions and possibly route them to error handlers. This annotation may be used on action methods and the page flow class, and in the global page flow that resides in WEB-INF/src/global/Global.app.

@jpf:controller Annotation

Indicates whether the page flow is nested; whether users must be logged in; whether logged-in users must be associated with existing J2EE roles; and whether a Struts XML configuration file should be merged into the page flow. This annotation may be used at the page flow class level only.

@jpf:exception-handler Annotation

Designates an error handler method. Without a @jpf:exception-handler annotation, the page flow runtime will not recognize an error handler method.

@jpf:forward Annotation

Describes a location to which the page flow runtime should go to next. The location may be a JSP, a page flow, or an action method. This annotation may be used on action methods and the page flow class, and in the global page flow that resides in WEB-INF/src/global/Global.app.

@jpf:message-resources Annotation

Specifies a message bundle, allowing you to implement validation in the page flow's form beans. This annotation may be used at the page flow class level only.

@jpf:validation-error-forward Annotation

Indicates which page should be loaded, or which action should be run, if a form validation error occurs as a result of running the annotated action. This annotation may be used at the method level only.

@jpf:view-properties Annotation

Describes layout information for your page flow's graphical Flow View. Do not edit this data.

@common:control Annotation

Indicates that a member variable in a page flow references a WebLogic Workshop control, such as a control or a database control.

Related Topics

Guide to Building Page Flows