What are the classes and interfaces for servlets?

Answer Posted / lal ajith kumara

Most commonly used interfaces and classes

javax.servlet.Servlet interface and
javax.servlet.ServletConfig interface
by implementing them we get

javax.servlet.GenericServlet

by extending GenericServlet we get
javax.servlet.http.HttpServlet

most ppl used HttpServlet to create Servlets

Is This Answer Correct ?    14 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you explain in detail 'javax.servlet' package?

752


What's the use of servletcontext?

877


Explain url encoding in servlet?

794


What is the difference between jsp and servlet life cycle?

941


What is url encoding and url decoding

828


What do you mean by mime type?

761


Explain the difference between generic servlet and http servlet?

734


What is the directory structure of a war file?

900


Why the concept of single thread model interface is used?

725


What's the architecture of a servlet package?

731


What is http servlet? Explain with the help of an example.

787


Explain web application directory arrangement?

781


What is a deployment descriptor?

835


What is servlet container. how it works?

865


What do you mean by httpservlet?

750