# New Servlet Wizard: Name and Location

Use to set project location, class name, and package information for a servlet.

In the Name and Location panel, you set the following properties:

Element | Description
--- | ---
Class Name | Specifies the class name of the servlet. The IDE names 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.

Related Topics

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Copyright © 2016, Oracle and/or its affiliates. All rights reserved.