New Servlet Wizard: Name and Location
See Also
The New Web Servlet wizard creates a new servlet. Servlets are server-side programs that give Java technology-enabled servers additional features. You open the New Servlet
wizard by right-clicking a node in the Projects windows and choosing New > Servlet from the contextual menu.
In the Name and Location panel, you set the following properties:
- Class Name. Specifies the class name of the servlet. The IDE name the class
NewServlet
by default.
- Project. Specifies the project where the servlet is located. You cannot change this value.
- Location. Specifies the location where you want to store the
servlet.
- Package. Specifies the package where you want
to store the file containing the source code for the servlet. Select the package from the drop down list.
- Warning: It is highly recommended that you do not place Java classes in the default package.
- Created File. Specifies the file created containing the servlet. The name of the file is identical to the class name.
To specify more parameters, click Next. If you click Finish, the IDE creates the servlet based on the parameters you have specified. The servlet then appears in the Project window under the package-name node.
- See Also
- About Servlets
- Creating Servlets
- New Project Wizard
Legal Notices