Which method the Servlet container call to create the
instance of the servlet?
Answer Posted / ravikiran(aptech mumbai)
After The successfull parsing of web.xml container will find
the particular class name which is mapped in web.xml and calls
class.forName(classname).newInstance() method.Then calls
init(ServletConfig config) of GenericServlet for
initializing the instance of the servlet.
| Is This Answer Correct ? | 35 Yes | 1 No |
Post New Answer View All Answers
Can we fetch the attributes related to a servlet on a different servlet?
How printwriter is different from servletoutputstream?
What are important features of Servlet 3?
Can we override destroy method in servlet?
How can we implement a jsp page?
What are the differences between the servletconfig interface and the servletcontext interface?
What is the life cycle of a servlet?
What is meant by session? Tell me something about httpsession class?
Define declaration.
What is the directory structure of web application?
what do you understand by url rewriting?
What do you mean by httpservlet and how it is different from the genericservlet?
Explain the servlet context.
What is the procedure of invoking different servlet in a different application?
Why are servlets used?