- Select the servlet in the Servlets Configured pane, tab General,
and click
or select in the context menu.
The Servlet Initialization Params pane opens. - To specify another class to implement the servlet, click Change Class. The Choose Servlet Class dialog box opens.
- Select the name of the relevant class and click OK.
Note
To search among the classes outside the current project, select the Include non-project classes check box.
- To rename the servlet, click Rename Servlet. The Rename Servlet dialog box opens.
- In the Servlet Name text box, edit the root path of the servlet name.
- To automatically update the corresponding source code, click Refactor.
- To preview the refactoring results, click Preview. The Refactoring Preview window opens.
Note
The window is synchronized with the web.xml file in the Text tab.
- View the suggested refactoring. To accept the suggestions, click Do Refactor.
- Proceed with specifying the initialization attributes of the servlet.

