Answer Posted / giridhar gangapatnam
Life Cycle of Servlet:
1.Servlet Loading.
2.Servlet instantiation:
After Servlet instantiation and before calling init() method
ServletConfig object is created by Container.
3.Servlet initialization: At that time init() method is called.
4.Request processing:In this stage service() method is called
and at that time Request and Response objects are created by
Container.
5.Servlet deinstantiation:At this stage destroy() method
will be called.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Explain url encoding?
Write a servlet to upload file on server.
How to create war file?
What is the functionality of actionservlet and requestprocessor?
Which method is called when reference variable is passed in system.net?
Explain the servlet context.
what do you understand by url rewriting?
Tell us something about servletcontext interface.
How can we invoke another servlet in a different application?
Why doesn’t a servlet include main()? How does it work?
Should I override the service() method?
What is servlet and its advantages?
How can we refresh automatically when new data is entered into the database?
What are important features of Servlet 3?
Why servlet is mostly used?