A servlet is a normal java class which follows these set of rules: Should be a public non-abstract class. Should be a subtype of servlet.Servlet interface or HttpServlet class. Should contain a zero or no argument constructor. The inherited methods from the Servlet interface should not be declared as final. Following are the basic steps for creating and executing a servlet: Create a HTML page (optional) Create the Servlet file Create the web.xml (deployment descriptor) file Deploy the application Creating a HTML Page First thing we will do is create a HTML page called index.html with the
The post How to create and execute servlet manually appeared first on Coding Security.
How to create and execute servlet manually
read more
Tidak ada komentar:
Posting Komentar