Steps to Create First Servlet
This blog will help you to create demo servlet program and also explain the steps to create it. Step 1: First create one HTML File and add following code <html> <head> <title>Introductions</title> </head> <body> <form action="FirstServlet" method="GET"> If you don't mind me asking, what is your name? <input name="name" type="TEXT" /><p> <input type="SUBMIT" /> </p></form> </body> </html> Step 2: Now create one servlet file as FirstServlet and add following code import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class FirstServlet extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletExceptio...