06/02/25 ---------- Q)Explain about servicing phase of a servlet. =>Servlet Container(Engine) calling service method on the servlet object is nothing but servicing phase of the servlet. =>Servlet Container creates ServletRequest and ServleResponse objects and by supplying these two objects(references) as arguments, Servlet Container calls the service method of the servlet. Once service method is completely executed, one client's request-response cycle is complete. =>If concurrent mulitple requests come for the servlet, Container creates a thread per client and implements servicing phase. DIAGRAMS Q)What are the system requirements to develop and run a Java web application? =>Java Web Container software. For eg. Tomcat DIAGRAM Q)What are the steps involved in Java web application development? Step 1:- create a structured hierarchy of directories root folder WEB-INF classes lib src =>"src" folder is meant for Java source files =>"classes" folder is meant for Java class files =>"lib" folder is meant for all jar files Step 2:- develop all the files of the application. 1)static resources(htmls,css files,image files etc.) 2)dynamic resources (servlets & jsps) Step 3:- develop the deployment descriptor(web.xml) Step 4:- configure the application files =>All html files,java script files,css files, image files,jsps are to be placed into root folder =>place web.xml in WEB-INF folder =>All ".class" files place in "classes" folder =>jar files if any place them in "lib" folder