Servlet is like any other Java class and should be compiled like any other java class. Once compiled, place the class file into the WEB-INF/classes directory, add the servlet and servlet mapping entry into the web.xml, start the Tomcat and through the browser call the server using the URL-pattern specified in the web.xml.
|