This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi, First af all, Servlet is an interface, and HttpServlet is a class. In general javax.servlet package has all the classes/interfaces not directly tied to HTTP, and java.servlet.http package has the classes/interfaces that deals with the http protocol. If you are going to use HTTP, you should extend the class HttpServlet (wht you normally do). If you are not going to use HTTP, you can extend just GenericServlet, that implements the generic interface Servlet, but it is not tied to HTTP. Dani