SERVLET TECHNOLOGY
" Servlet Technology is used to create secure and portable web application. "

Netbeans IDE

Using Intregrated Development Enviroment(IDE) is the easiest way to create servlet application. An IDE is a software application that provides facilities to computer programmers for software development. Eclipse, MyEcplise, Netbeans are example of some popular Java IDE.


Steps to create sevlet application in Netbeans IDE

To create a servlet application in Netbeans IDE, you will need to follow the following steps

  1. Open Netbeans, Select file -> New Project
  2. steps to create servlet application in netbeans


  3. Select Java Web -> Web Application, then click on next
  4. steps to create servlet application in netbeans


  5. Give a name to your project and click next
  6. steps to create servlet application in netbeans


  7. Click finish
  8. steps to create servlet application in netbeans


    steps to create servlet application in netbeans


  9. To create a servlet, open Source Package, right click on default packages -> New -> Servlet
  10. steps to create servlet application in netbeans


  11. Give a name to your servlet class file
  12. steps to create servlet application in netbeans


    steps to create servlet application in netbeans


    steps to create servlet application in netbeans


  13. Write some code inside your servlet class
  14. steps to create servlet application in netbeans


  15. Create a html file, right click on Web Pages -> New -> HTML
  16. steps to create servlet application in netbeans


    steps to create servlet application in netbeans


  17. Write some code inside your html file
  18. steps to create servlet application in netbeans


  19. Edit web.xml file
  20. steps to create servlet application in netbeans


  21. Run your application, right click on your project and select run
  22. steps to create servlet application in netbeans


    steps to create servlet application in netbeans


    steps to create servlet application in netbeans