-
Open the New Servlet dialog box from the Project tool window.
Alternatively, open
web.xmland switch to the General tab. Then click
in the
Servlets Configured
pane.
- In the <servlet-name> text box, specify the root part of the new servlet name.
- In the
Package
text box, specify the name of the target package where the new servlet will be generated.
If necessary, use the
button. The
Choose Servlet Package
dialog box opens.
- Select the relevant package or create a new one by clicking
.
Click OK. You return to the
New Servlet
dialog box.
- In the
Servlet Class
text box, type the name of the class that implements the new servlet. If necessary, use the
button. The
Choose Servlet Class
dialog box opens.
- Select the relevant class and click OK. You return to the New Servlet dialog box.
- Click OK. The General tab with the Servlet Initialization Params pane displays.
- Proceed with specifying the initialization attributes and the context-initialization parameters of the servlet.