Context Parameters Property Editor
 |
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:
- Click the Deployment pane of the web.xml property sheet.
- Click the value field to activate ellipsis button (...), then click the
ellipsis button.
To specify context parameters:
- In the Context Parameters property editor, click the Add button.
- In the Add Context Parameter dialog box, supply:
- The parameter name and value
- An optional description of the parameter in the Description field. You
might use database information, such as user name, password, driver name,
and database URL. This way, the deployer could change the target database
without modifying the servlet and JSP code, or use the element in the
deployment tool itself.
- Click OK.
To edit a context parameter:
- In the Context Parameters property editor, select the context parameter
to be edited. The Edit Context Parameter dialog box appears.
- 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.
- Click OK. Your changes are reflected in the Context Parameters property
editor.
To remove a context parameter:
- In the Context Parameters property editor, select the context parameter
to be deleted.
- Click Remove. The context parameter is deleted.
- 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
.
Legal Notices