Create a Sevlet

An Example in Netbeans 8.0.2.

  • Right click the mouse on created web project and select New -> Servlet... from the menu.
    CarParkServlet
    Servlet01
    show
    ...\Servlet01\src\java\show\CarParkServlet.java
  • Select a class name, CarParkServlet, and a package name, show, for the Servlet. After this press the Next Button.
    show.CarParkServlet
    CarParkServlet
    /CarParkServlet
  • Select Add information to deployment descriptor (web.xml) and press the Finish button.

    You are now ready to change the servlet class to your needs.

W3Processing.com
© 2010 by Finnesand Data. All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the correctness in the pages or source codes.
The risk of using this web-site pages or any program codes from this website is entirely at the individual user.
.