what is the control flow in servlet when we send a request?

Answer Posted / lucky

Servlet: is used to create web tech,its based component to create web app ,its a server side component, its a java obj which implements directly or indirectly implemented by Servlet interface , its a singleton obj and multithreaded model and security, its an interface having abstract methods init , service ,destroy, config , info and these inti ,service , destroy are life cycle method, remain are programmer initialized ,whn user send a req to peticular serlet req reach to server thne server jvm check url pattern in deployment descriptor file then it find url server take url and check with the corresponding servlet if its finds that servlet then server jvm wil create servlet obj then it will cal life cycle methods and son ........................

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a servlet-to-servlet communcation?

862


If a servlet is not properly initialized, what exception may be thrown?

860


How do you configure a centralized error handler in servlets?

760


What is the purpose of requestdispatcher interface?

818


List some life cycle methods of a servlet.

788


Why the concept of single thread model interface is used?

729


Explain the servlet context.

810


What is servlet interface?

938


Differentiate between the web server and application server?

764


What do you mean by scope object and what are its types?

784


What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?

827


How many servlet objects are created?

775


What is servlet lazy loading?

898


How can an existing session be invalidated?

866


Why doesn’t a servlet include main()?

780