You are on page 1of 44
21172016 Servet Technology Model, Serle AP and fe cyclejvan servlet Package :hterfaces, Classes Exceptions; javax servlet Servet interface: oad-on star. JAVA ORACLE WEB IT Tutorial World JOB: res TIMES.COM et) jobsdimesagmatt. Inspire > Aspire > Achieve TIMES‘com Servlet Technology Model Agenda: 1. Servlet API and life cycle « javax.servlet Package : = Interfaces :(14 = Classes : (9) . Exceptions 2) + javax.servlet.Servet interface : load-on-startuy Life Cycle of the Servlet that implements Servlet interface. GenericServlet(AC javax.servlet.http package : «= Interfaces :(8) = Classes :(7. « Structure of HttpRequest : * Structure of HttpResponse : 2. Http methods 1, GET = HttpServlet : » Life Cycle of HttpRequst : 3. HttpServietRequest a. To retrive request parameters b. To retrive request headers c. To retrive request cookies * Retrieving client & Server information from the request : 4, HttpServletRespon: To set response headers To set ContentType of response To get Text Stream for response To get Binary stream for response To perform redirecting pd ava sowed cbs times camer vat Techoloy-Msl Nk us yeenNo 1172016 Servet Technology Model, Serle AP and fe cyclevax servlet Package :hterfaces, Classes Exceptions; javax servlet Servlet interface: oad-onstar. 6. To add Cookies to the response « Differences between send-Redirection and forward mechanism : known and fixed number of clients we can access 2-tier. Web Application : collection of web resources, web resource : each web resource is capable of generate one web page.(Ex: html , servlets, java script ) Web resources : 2 types 1. static 2. Dynamic ‘A web page whose content is fixed i.c., static web page Ex: him] , js , images ‘A web page whose content will be changed dynamically based on time of request generate input values of the request. Ex:Servlets, JSP’s , Server side java script(ssjs) , PHP Based on the place client side web resources program executed.(in browser) Based on the place server side web resources program executed but not resides .(in server side) ‘WEB APPLICATION REQUIREMENTS : Browser software. echnology to develop client sit Technology to develop server s User software. DataBase software, yaya hips ava sewed jobs imes.comiServet-Technclogy- Mol Nim 2a 1172016 Servet Technology Model, Serle AP and fe cyclevax servlet Package :hterfaces, Classes Exceptions; javax servlet Servlet interface: oad-onstar. WEB Server Software : Web server sofiware is special piece of s/w (or) special s/w which can manages the web applications and web resources we executes this web resources automatically or dynamically when ever your requesting . JDBC Secu ‘onnection pool images Servlets Responsibilities of web server : It collects all client http requests. It passes to appropriate web resources of web application. Web server proceed built middle ware software. container built in controller software. Gives resultant out put. yaena Responsibilities of Servlet Container : 1. To provide the environment to manage web resource of Web Application. 2. It Perform total life cycle operations. 3. Incase of JSP to generate corresponding Generated Servlet. hips ava sewed jobs imes.comiServet-Technclogy- Mol Nim a8

You might also like