!--a11y-->
Creating Servlets 
A Web Module project exists. See Creating Web Module Projects or Creating Web Module DC Projects.
1. Choose File ® New ® Other...
2. On the left pane of the first wizard page, choose J2EE ® Web, and on the right pane, select Servlet.
3. Choose Next.
4. In the Web Project field, select the web project to contain the servlet.
5. In the Servlet Name field, enter a name for your new servlet.
6. In the Servlet Type field, select HTTP or Generic.
7. In the Servlet Package field, enter a package.
If the package does not exist, you can create it now.
8. Select or deselect Use Single Thread Model as required.
9. Select the methods that you want to be automatically generated.
10. Choose Finish.
The Java editor opens with the generated source code.
If you created the JSP in a normal project, you can now see something like this in the J2EE Explorer view:

If you created the JSP in a DC project, you will see something like this in the J2EE DC Explorer view:

You can now edit the source file in the Java editor.
