Pr.Pg Next Pg

Creating Simple Servlet in Netbeans tutorials

  • Following are the steps for creating servlets in Netbeans:

  1. Start NetBeans IDE

Creating Srvlets in netbeans

  1. Open New Project

  • Select JavaWeb– WebApplication

Creating Servlets in netbeans

  1. Give Name and Location of your Project

Creating servlets in netbeans

  1. Select Server and Settings

Creating servlets in netbeans

  1. Select Frameworks-Don’t select anything now

Creating servlets in Netbeans

  1. index.jsp file is the jsp page which is displayed

Creating servlets in netbeans

  1. Right Click on the ProjectName in left here WebApp and select New- Servlet

Creating servlets in netbeans

  1. Give Name and Location for the Servlet

Creating servlets in netbeans

  1. Configure Servlet Information

Creating servlets in netbeans

  1. The Servlet get displayed- ‘HelloNetbeans!..’ after editing in printwriter.

Creating servlets in netbeans

  1. Right Click on the Servlet to Run it

Creating servlets in netbeans

  1. Set Servlet Execution URI

Creating servlets in netbeans

  1. The Servlet in a Browser Window look like below

Creating servlets in netbeans

Pr.Pg border                                              Next Pg