Entering content frame

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

Prerequisites

A Web Module project exists. See Creating Web Module Projects or Creating Web Module DC 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 Listener.

       3.      Choose Next.

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

       5.      In the Listener Name field, enter a name for the listener class.

       6.      In the Listener Type field, select the type.

       7.      In the Listener Package field, enter a package for the listener.

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

       8.      If required, specify the superclass in the Superclass field.

       9.      Choose Finish.

The Java editor opens with the generated source code.

Result

If you created the JSP in a normal project, you can now see something like this in the J2EE Explorer view:

This graphic is explained in the accompanying text

If you created the JSP in a DC project, you will see something like this in the J2EE DC Explorer view:

This graphic is explained in the accompanying text

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

For more information, see Developing Event Listeners.

 

Leaving content frame