Context Parameters 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 .

Use the Context Parameters property editor to add, edit, or remove context parameters. You can use context parameters to specify initialization parameters that are accessible to all the JSP and servlet files in the web module. Context parameters enable you to store things that are dependent on where the module might be deployed, like the database URL, driver, and login information. Each entry of this property corresponds to a <context-param> element in the web module's deployment descriptor.

To display the Context Parameter property editor:

  1. Click the Deployment pane of the web.xml property sheet.
  2. Click the value field to activate ellipsis button (...), then click the ellipsis button.

To specify context parameters:

  1. In the Context Parameters property editor, click the Add button.
  2. In the Add Context Parameter dialog box, supply:
  3. Click OK.

To edit a context parameter:

  1. In the Context Parameters property editor, select the context parameter to be edited. The Edit Context Parameter dialog box appears.
  2. Edit the parameter name in the Param Name text field, the value in the Param Value field, and the description of the parameter in the Description field.
  3. Click OK. Your changes are reflected in the Context Parameters property editor.

To remove a context parameter:

  1. In the Context Parameters property editor, select the context parameter to be deleted.
  2. Click Remove. The context parameter is deleted.
  3. Click OK to confirm the action or Cancel to stop the action.

For more information, see Java Servlet 2.3 Specification available at http://java.sun.com/products/servlet .

See also
Editing Web Module Deployment Properties

Legal Notices