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

How will you pass values from HTML page to the servlet?

801


Explain web container.

812


What is the difference between get and post methods?

804


Explain the different ways for servlet authentication?

803


What is the life-cycle of servlets?

874


What are the different methods involved in generic servlet?

829


What is context in servlet?

784


What is the difference between Servlets and Applets?

774


Explain request dispatcher and its methods.

793


Explain session tracking and its importance?

755


Explain url encoding?

767


Explain the differences between jsp and servlet.

746


What is called servlet mapping?

763


How does java thread pool work?

798


What must be implemented by all servlets?

814