Listeners Property Editor

Tip Note that this feature might not be included in your version of the IDE. If it is not available, you can edit the deployment descriptor (web.xml) file using the editor of your choice. For more information, see Java Servlet 2.3 Specification available at http://java.sun.com/products/servlet .

The Listeners property editor provides a way to add, remove, and edit the order of listener reference elements in a web module deployment descriptor (web.xml). Typically, listener references are added to the deployment descriptor using the New Wizard when you create the listener.

To display the Listeners property editor:

  1. Click the Deployment pane of the web.xml property sheet.
  2. Click the Listeners value field to make the ellipsis button (...) appear. Then click the ellipsis button.

To add a listener reference element:

  1. In the Listeners property editor, click the Add button. The Add Listener dialog box appears.
  2. In the Listener Class field, type or browse for the listener class name.
  3. Click OK. The specified listener class name appears in the list in the Listeners property editor.

To edit the order of listener reference elements:

  1. In the Listeners property editor, click the desired listener class, then click the Edit button. The Edit Listener dialog box appears.
  2. Edit the listener class name.
  3. Click OK. The edited listener class replaces originally selected class in the Listeners property editor.

To remove a listener reference element:

  1. In the Listeners property editor, click the listener class to be removed, then click Remove. The listener class is removed from the table.
  2. Click OK to confirm the action or Cancel to stop the action.
See also
Editing Web Module Deployment Properties
Creating a Listener
Listeners (defined)

Legal Notices