You are on page 1of 11
Why Movement To Server-Side e interaction of a C.G.I. solution JAVA + Disadvantage of applets (compatibility). + Compati and bandwidth issues. Chime [eet CON New CGH Process + download times. Regus CGI dynamic generation of web pages. Cine {New CGH Process Reques COM (came Now CoH cess Common Gateway Interface Problems with C.G. + Although C.G.l. Is a widely used ‘solution to dynamic Web development, itis also avery problematic sol + AWeb server creates anew process every time it receives a CGI request. This results in loss of response time because the server must create and initialize a new address space for every process. + One of the most common server-side sol used to develop Web applications. + AC.G.l. Application is an independent moduie that receives request from a Web server. + The application processes the data ve and sends it back to the server, typically as HTML. + The server then sends the data to the browser. FOR PRIVATE CIRCULATION FOR PRIVATE CIRCULATION ONLVREDESIGNED FOR B.TECH ONLYREDESIGNED FOR B.TECH STUDENTS ONLY 1 STUDENTS ONLY Contd. + Although CGI code can be implemented in almost any language, the most common is erl. Although Perl is very powerful at processing text, it requires the server to start a new interpreter for every request. This takes longer than starting compiled code and still eats up available process and resources. Contd. + Additionally, CGI runs ina completely Separate process from the Web server fa client submits a request to a CGI program that terminates before responding to the web server, the browser has no way of knowing what happened. + It just sits there waiting for response unt times out. FOR PRIVATE CIRCULATION ONLVREDESIGNED FOR B.TECH STUDENTS ONLY Why Build Web Pages Dynamically? + The Web page is based on data submitted by the user Eg, zr yage fom seaich engines and ones= condamation page a n-ne stores + The Web page is derived from data that changes frequently = Eg, awesther post or news headlines page + The Web page uses information from databases of other server-side sources ~ Eg, ane-conmerce ste could we aservetto build a Web page that ists the content puce and availability of cxchitem that forsale. + SOLUTION TO ALL PROBLEMS + SERVLETS FOR PRIVATE CIRCULATION ONLYREDESIGNED FOR B.TECH 3 STUDENTS ONLY JAVA Serviets + A Serviet is a Dynamically loaded module that services requests from a Web server. + Itruns entirely inside the Java Virtual Machine. + As Serviet is running on the server side, it does not depend on browser compatibility. Serviets + Execution of a java servlet FOR PRIVATE CIRCULATION ONLVREDESIGNED FOR B.TECH STUDENTS ONLY A Serviet’s Job + Read explicit data sent by client (form data) + Read implicit data sent by client (request headers) + Generate the results + Send the explicit data back to client (HTML) + Send the implicit data to client (status codes and response headers) oP EE neh Free Serviet and JSP Engines Apache Tomcat ~ itp Uae apache orgitomeat! ~ See hitp:/hunumoreserdets comsing-Tomcat-tm + Allaire/Macromedia JRun ~ hp thew macromedia comofhrazeiun! + New Atlanta ServletExec 1atp tame ervetexec com + Gefion Software LiteWebServer ~ hp threw gefoncafhrarecom/LiteWeb Serves! Caucho’s Re ~ hp thew caucho cond FOR PRIVATE CIRCULATION ONLYREDESIGNED FOR B.TECH ‘STUDENTS ONLY

You might also like