servlet_jsp - 07/07/11 Ser vlets & JSP by Darshana...

Info iconThis preview shows pages 1–17. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 07/07/11 Ser vlets & JSP by Darshana 07/07/11 Road Map Servlet Architecture Overview Servlets in Context Other options for server side development Advantages of Servlets Introduction to Java Server Pages (JSP) Servlets v. JSP 07/07/11 Archit ectural Over view 07/07/11 Web application Evaluation-Static Organization want to deliver their information to as many as people in the world This can be achieved by using web, delivering information as static html pages 07/07/11 Web application Evaluation-Applets With static HTML user see passive page presentation which are always the same. Presentation can be improved by using applets or client side program. 07/07/11 Web application Evaluation-Servlets Applets can not access data on back end system. A web container can provide server side components to generate dynamic content. 07/07/11 What is a Servlet? Javas answer to the Common Gateway Interface (CGI). Applet : a java program that runs within the web browser. Servlet : a java program that runs within the web server. Rapidly becoming the standard for building web applications. 07/07/11 Life of a Servlet Regardless of the application, servlets usually carry out the following routine : Read any data sent by the user Capture data submitted by an HTML form. Look up any HTTP information Determine the browser version, host name of client, cookies, etc. Generate the Results Connect to databases, connect to legacy applications, etc. 07/07/11 Life of a Servlet (cont.) Format the Results Generate HTML on the fly Set the Appropriate HTTP headers Tell the browser the type of document being returned or set any cookies. Send the document back to the client 07/07/11 Life of a Servlet Web Browser Web Server Java Servlet Database 2 3 4 5 Presentation Tier Business Logic Tier Server Application DataTier 1 07/07/11 07/07/11 What can you build with Servlets? Search Engines Personalization Systems E-Commerce Applications Shopping Carts Product Catalogs Intranet Applications Groupware Applications: bulletin boards, file sharing, etc. 07/07/11 Ser vlets in Cont ext 07/07/11 Server Side Options There are many options for creating server side applications. We will examine some of these options briefly. This better enables us to understand servlets within the broader context of web development. Also enables us to better understand the advantages and disadvantages of servlets. 07/07/11 Server Side Options Common Gateway Interface (CGI) Fast CGI Mod Perl ASP PHP Cold Fusion 07/07/11 Common Features All server side frameworks share a common set of features: Read data submitted by the user Generate HTML dynamically based on user input Determine information about the client browser Access Database systems Exploit the HTTP protocol 07/07/11...
View Full Document

This note was uploaded on 06/27/2011 for the course COMPUTER S 133 taught by Professor Andrewstrauss during the Spring '11 term at Bucks Community College.

Page1 / 204

servlet_jsp - 07/07/11 Ser vlets & JSP by Darshana...

This preview shows document pages 1 - 17. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online