What are the two main types of servlet?

There are two main servlet types, generic and HTTP:

  • Generic servlets. Extend javax. servlet. GenericServlet. Are protocol independent. ...
  • HTTP servlets. Extend javax. servlet. HttpServlet. Have built-in HTTP protocol support and are more useful in a Sun Java System Web Server environment.

Related posts: