Specifying the Servlet Name and the Target Package
To define the servlet name and the target package where the servlet will be created
- Open the New Servlet dialog box from the Project Tool Window.
- 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.
Last modified: 24 July 2018