Which method the Servlet container call to create the
instance of the servlet?
Answers were Sorted based on User's Feedback
Answer / v.bojjanna
first the web container call the servlet init(). after it
call the newInstance() for create the servlet object
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sunil
servlet container calls the init() method to create the
instance of the servlet.
The instance is created for the servlet in which the init()
method is implemented.
| Is This Answer Correct ? | 6 Yes | 6 No |
Answer / venkatesh
ServletProcessor1.process() and this loads servlet class
using the mapping provided in web.xml and creates a new
instance of it.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / arun
the servlet container will call only init() method and it
will not create any instance of the servlet,it will pass
initialization parameters to the init() method,it is called
(i.e init() method ) before the servlet, services any
request.only once in the life cycle of sevlet this init()
method is called.
| Is This Answer Correct ? | 0 Yes | 2 No |
Hi Frieds, I am new to servlet why to use servlet in webapplication. what i know is " use servlet as a controller in mvc and to implemnent business logic . is it correct ? One more thing reason for implementing business logic with servlets , why not jsp.
I Have A Plan to develop a Project in Struts,I want the template of struts project with Hibernate.Canany body provide me the required information?
What is java servlet?
What are the different session tracking techniques?
What is servlet name in web xml?
Is servlet a framework?
Difference between web container & web server........... Difference between web server & application server?????????
Which java application server is the best?
what is the difference b/w DispatchAction and LookUpDispatchAction?
1 Answers Deloitte, iGate, Tech Mahindra,
How to debug a servlet?
What is new in ServletRequest interface ? (Servlet 2.4)
Write a program to show the functionality of servlets.