Setting Listener Properties
See Also
The listener property sheet lets you set properties for a listener class.
To display the listener property sheet:
- On the Filesystems tab of the Explorer, right-click the node representing
the listener to be specified.
- Choose Properties from the contextual menu. The listener property sheet
appears.
On the Properties pane of the listener property sheet, you can set the following
properties:
- Name. This property sets the
HttpSessionListener
element,
used to map the listener to a servlet or URL. In most cases, you will specify
a name when you create the listener. To specify
a name from the property sheet, click the Name value field, then click the
ellipses (...) to display the Name property editor.
- Synchonization Mode. To set the synchronization mode for the listener
source code, choose a mode from the list. Possible values are
Do Not
Synchronize
, which disables automatic synchronization, Confirm
All Changes
, the default and recommended setting, and Without
Confirmation
, which causes synchronization without confirmation.
- Template. To set the template property, choose True or False from
the list.
On the Execution pane of the listener property sheet, you can set the following
properties:
- Arguments. To specify listener arguments, type the argument in the
Arguments value field, or click the ellipses (...) and enter the arguments
in the Arguments property editor.
- Compiler. Setting a compiler type for the listener allows you to
override the default compiler setting. To specify this property, choose a
compiler from the list in the Compiler value field, or click the ellipses
(...) and choose a compiler in the Compiler property editor.
- Debugger. Setting a debugger type for the listener allows you to
override the default debugger setting. To specify this property, choose a
debugger from the list in the Debugger value field, or click the ellipses
(...) and choose a debugger in the Compiler property editor.
- Executor. Setting the Executor property for the listener allows you
to override the default executor setting. To specify this property, choose
an executor from the list in the Executor value field, or click the ellipses
(...) and choose an executor in the Executor property editor.
For more information about listeners, see the Java Servlet 2.3 Specification
available at http://java.sun.com/products/servlet
.
Legal Notices