First Servlet

Steps

  1. Type in source code. (See Below)
  2. Save the file. Path
  3. Compile. Note
  4. Declare FirstServlet in WEB-INF/web.xml
  5. Map FirstServlet to a URL in WEB-INF/web.xml

Final Code

  • Source: smartsoft/tutorial/first/FirstServlet.java
  • Run It

  • smartsoft.tutorial.first.FirstServlet