The first thing that you need to do to create a servlet project on Netbeans is choose Java Web from the categories. How To Create A Servlet Project In Netbeans For MySQL connectivity, you will need to manually add the JAR. If you’re using Eclipse, to create a Servlet project, you need to have the Java Web plugin and Apache Tomcat (or any other server for the matter) installed. If you’re not aware of how to check the MySQL connectivity from NetBeans, you can check out this post. If you’re using Netbeans and have GlassFish Server installed, the servlet-api.jar will already be there in your library. Without these two, your application won’t run. To implement a servlet, you need to have the servlet-api.jar and since we’re using MySQL for DB authentication, you also need to have the mysql-connector-java-bin.jar. They are basically used to extend the functionality of a web server. ![]() Java Servlets are basically objects which sends back a response based on the incoming request.
0 Comments
Leave a Reply. |