Show TOC Start of Content Area

Procedure documentation Creating Filters  Locate the document in its SAP Library structure

Use

Filters can modify request or response objects. For more information, see Developing Filters.

Prerequisites

A Web project exists. See Creating Web Projects.

Procedure

       1.      Choose File New Other.

       2.      On the left pane of the first wizard page, choose J2EE Web, and on the right pane, select Filter.

       3.      Choose Next.

       4.      In the Web Project field, select the Web Module project that will contain the filter.

       5.      In the Filter Name field, enter a name for the filter class.

       6.      In the Filter Package field, enter a package for the filter.

If the package does not exist, you can create it now.

       7.      If you want, specify the superclass in the Superclass field.

       8.      Choose Finish.

The Java editor opens with the generated source code.

Result

You can see the filter in the source  node of the relevant Web project in the J2EE Explorer (for ordinary projects) or J2EE DC Explorer (for DC projects).

You can now edit the source file in the Java editor.

End of Content Area