Webcommerce Computer Networks Webcommerce by Linnea Reppa Douglas Martindale Lev Shalevich.

Slides:



Advertisements
Similar presentations
Lecture plan Information retrieval (from week 11)
Advertisements

Java Server Pages Jeffrey Jongko. Introduction Java Server Pages (JSP) technology was created by Sun Microsystems and is built on top of Sun’s Java Servlet.
 Copyright Wipro Technologies JSP Ver 1.0 Page 1 Talent Transformation Java Server Pages.
Java Servlet & JSP © copyright 2005 SNU OOPSLA Lab.
Technology Overview JAVA Servlets CS-611 S. Witherspoon.
Time Scalability Single User Unlimited Users 100s of Users Several Users PC based Single user Late 1980sNow PC based, file-level locking Single user or.
Using JavaServer Pages Harry R. Erwin, PhD CIT304/CSE301.
JSP: JavaServer Pages Juan Cruz Kevin Hessels Ian Moon.
Sapana Mehta (CS-6V81) Overview Of J2EE & JBoss Sapana Mehta.
Servlets and a little bit of Web Services Russell Beale.
WEB1P servintro1 Introduction to servlets and JSP Dr Jim Briggs.
28/1/2001 Seminar in Databases in the Internet Environment Introduction to J ava S erver P ages technology by Naomi Chen.
18-Jun-15 JSP Java Server Pages Reference: Tutorial/Servlet-Tutorial-JSP.html.
Time Scalability Single User Unlimited Users 100s of Users Several Users PC based Single user Late 1980sNow PC based, file-level locking Single user or.
1 CS6320 – Why Servlets? L. Grewe 2 What is a Servlet? Servlets are Java programs that can be run dynamically from a Web Server Servlets are Java programs.
Java Server Team 8. Overview What is a Java Server? History Architecture Advantages Disadvantages Current Technologies Conclusion.
Introduction to Servlet & JSP
1 Java Server Pages Can web pages be created specially for each user? What part does Java play?
Java web development Servlet & Java server pages.
Java Servlets. What Are Servlets? Basically, a java program that runs on the server Basically, a java program that runs on the server Creates dynamic.
Emmanuel Cecchet et al.  Performance Scalability of J2EE application servers.  Test effect of: ◦ Application Implementation Methods ◦ Container Design.
Struts. Agenda Preface Struts and its components An example The architecture required for Struts Applications.
UNIT-V The MVC architecture and Struts Framework.
Java Server Pages B.Ramamurthy. Topics for Discussion 8/20/20152 Inheritance and Polymorphism Develop an example for inheritance and polymorphism JSP.
Overview of JSP Technology. The need of JSP With servlets, it is easy to – Read form data – Read HTTP request headers – Set HTTP status codes and response.
Sys Prog & Scripting - HW Univ1 Systems Programming & Scripting Lecture 15: PHP Introduction.
Netbeans – jsp.zip Introduction to JSP Netbeans – jsp.zip.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
Applets & Servlets.
CSCI 6962: Server-side Design and Programming Course Introduction and Overview.
CIS 285 ROBINSON WINTER 2005 CIS 285 Web Application Development with Java CIS 285 Sinclair Community College Instructor: Mary Robinson.
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
JSP Java Server Pages Softsmith Infotech.
Design Patterns Phil Smith 28 th November Design Patterns There are many ways to produce content via Servlets and JSPs Understanding the good, the.
Servlets, JSPs and MySQL Presented by: Gian Alvarez Vicente Rivera.
® IBM Software Group © 2007 IBM Corporation J2EE Web Component Introduction
JSF Introduction Copyright © Liferay, Inc. All Rights Reserved. No material may be reproduced electronically or in print without written permission.
JAVA SERVER PAGES. 2 SERVLETS The purpose of a servlet is to create a Web page in response to a client request Servlets are written in Java, with a little.
Lecturer: Prof. Piero Fraternali, Teaching Assistant: Alessandro Bozzon, Advanced Web Technologies: Struts–
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Copyright © 2002 ProsoftTraining. All rights reserved. JavaServer Pages.
An Introduction to JavaServer™ Pages Prepared by Nicole Swan.
1 Java Servlets l Servlets : programs that run within the context of a server, analogous to applets that run within the context of a browser. l Used to.
An Introduction to JavaServer™ Pages Prepared by Nicole Swan.
Java for networking Module Introduction Data Communications Communication architecture Application.
JS (Java Servlets). Internet evolution [1] The internet Internet started of as a static content dispersal and delivery mechanism, where files residing.
CS562 Advanced Java and Internet Application Introduction to the Computer Warehouse Web Application. Java Server Pages (JSP) Technology. By Team Alpha.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
CSI 3125, Preliminaries, page 1 SERVLET. CSI 3125, Preliminaries, page 2 SERVLET A servlet is a server-side software program, written in Java code, that.
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
Chapter 3 JSP Overview. The Problem with Servlets processing the request and generating the response are both handled by a single servlet class Java programming.
UMass Lowell Computer Science Java and Distributed Computing Prof. Karen Daniels Fall, 2000 Lecture 21 Java Servlets Wed. 11/22/00 based on material.
Java Servlets and Java Server Pages
CSI 3125, Preliminaries, page 1 JSP (Java Server Pages)
1 Java Server Pages A Java Server Page is a file consisting of HTML or XML markup into which special tags and code blocks are inserted When the page is.
JAVA SERVER PAGES -by Rubeena Memon Deepti Jain Jaya Thakar Jisha Vettuventra.
Java Programming: Advanced Topics 1 Building Web Applications Chapter 13.
Java Server Pages. 2 Servlets The purpose of a servlet is to create a Web page in response to a client request Servlets are written in Java, with a little.
Bayu Priyambadha, S.Kom. Static content  Web Server delivers contents of a file (html) 1. Browser sends request to Web Server 3. Web Server sends HTML.
JSP / Servlets and Beans
A Presentation Presentation On JSP On JSP & Online Shopping Cart Online Shopping Cart.
Structure of a web application
Java Servlets By: Tejashri Udavant..
Scripted Page Web App Development (Java Server Pages)
Introduction to J2EE Architecture
MSIS 655 Advanced Business Applications Programming
Java Servlet Ziad A. Al-Sharif.
Introduction to Servlets
Objectives In this lesson you will learn about: Need for servlets
CS122B: Projects in Databases and Web Applications Winter 2019
Presentation transcript:

Webcommerce Computer Networks Webcommerce by Linnea Reppa Douglas Martindale Lev Shalevich

Part I

Web Client (HTML) HTTP Request HTTP Response Java Servlet JSP Pages Java Beans CGI Script The E-Boutique Commerce Site: Three tier architecture using Java Server technologies

Java Server Technologies Java Servlets JavaServer Pages JavaBeans Need a Web server that supports the Java Servlet and JavaServer Pages APIs. The E-Boutique site uses the Apache Tomcat server (available at Run over standard HTTP

Java Servlet Technology Servlets are standard, server-side Java application components that act as a middle layer between Web clients and enterprise applications and/or databases. Purpose is to accept an HTTP request, perform any necessary processing, which may involve invoking other applications and/or objects, and format an HTML reply. All processing occurs in the server. Analogous to Common Gateway Interface (CGI) programs, but provide superior scalability, portability, and convenience.

Java Servlet Technology (Continue) With traditional CGI, the operating system creates a new process for every HTTP request. A Servlet gets loaded into the Web server's memory the first time it is requested, and subsequent requests call the servlet instance already in memory with threads dispatched to handle individual requests. Because the compiled servlet is stored in memory, fewer system resources are needed at run-time and system response is very fast. Servlets come with an infrastructure for automatically parsing HTML form data, reading and setting HTTP headers, and tracking sessions.

Java Servlet Technology (Continue) The HttpServletRequest object automatically created by the Servlet represents a session object. The session object can be used to store any type of object, including beans, and is identified by a unique session key. This feature allows for the persistence of data throughout the session. The HttpServletRequest also contains the form data of the most recently submitted HTTP form. The servlet engine takes care of all form field parsing.

Java Server Pages (JSP) JSP technology was developed as a method to separate dynamic content, specific to the processing of a user request, from static HTML page design. JSP pages mix HTML and JSP-specific syntax. JSP pages are composed of HTML written in the normal manner, and Java code enclosed in special tags for the dynamic content. A JSP page is in fact a servlet: JSP class files extend the HttpJspBase class, which in turn implements the Servlet interface.

Java Server Pages (JSP) (Continue) The advantage of this architecture is that there is very little processing logic within the presentation page itself; it is simply responsible for retrieving the JavaBean objects previously created by the servlet controller, extracting the bean information for dynamic content, and inserting the content within standard HTML components. Like servlets, provide a very efficient solution because they're only loaded once as an operating system process and individual requests are handled via threads.

JavaBeans JavaBeans provide an architecture for building and using Java components. JavaBean components are nothing but Java classes that follow a well-defined design/naming pattern. A bean encapsulates its properties by declaring them private and provides public access (get/set) methods for reading and modifying their values. Persistence, a key feature of JavaBeans, enables a bean to save its state. The use of JavaBeans with Servlet and JSP technology is especially advantageous because beans can act as data encapsulators to allow data to persist, enabling collaboration between servlets JSP pages.

Part II

Results of WebStress on E-boutique's OrderProc Servlet (before server maintenance)

Median Response Time Related to Simultaneous Users (Order Processing Servlet before Server Maintenance)

Mean Response Time Related to Simultaneous Users (Order Processing Servlet before Server Maintenance

Median Response Time Related to Simultaneous Users (Order Processing Servlet before Server Maintenance)- Filtered Responses

Mean Response Time Related to Simultaneous Users (Order Processing Servlet before Server Maintenance)- Filtered Responses

Error Rates for Order Processing Servlet Before Server Maintenance

Comparison of Median Responses vs. Filtered Median Response (Order Processing Servlet before Server Maintenance)

Comparison of Mean Responses vs. Filtered Mean Responses (Order Processing Servlet before Server Maintenance)

Results of WebStress on E-boutique's OrderProc Servlet (after server maintenance)

Median Response Time Related to Simultaneous Users (Order Processing Servlet after Server Maintenance)

Mean Response Time Related to Simultaneous Users (Order Processing Servlet after Server Maintenance)

Median Response Time Related to Simultaneous Users (Order Processing Servlet after Server Maintenance)- Filtered Responses

Mean Response Time Related to Simultaneous Users (Order Processing Script after Server Maintenance)- Filtered Errors

Error Rates for Order Processing Servlet after Server Maintenance

Comparison of Median Responses vs. Filtered Median Responses (Order Processing Servlet after Server Maintenance)

Comparision of Mean Responses vs. Filtered Mean Responses (Order Processing Script after Server Maintenance)

Results of WebStress on E-boutique's HTML (before server maintenance)

Median Response Time Related to Simultaneous Users (E-Boutique HTML before Server Maintenance)

Mean Response Time Related to Simultaneous Users (E- Boutique HTML before Server Maintenance)

Median Response Time Related to Simultaneous Users (E-Boutique HTML before Server Maintenance)- Filtered Responses

Mean Response Time Related to Simultaneous Users (E-Boutique HTML before Server Maintenance)- Filtered Responses

Error Rates of E-Boutique HTML before Server Maintenance

Comparison of Median Responses vs. Filtered Median Responses (E-Boutique HTML before Server Maintenance)

Comparison of Mean Responses vs. Filtered Mean Responses (E-Boutique HTML before Server Maintenance)

Results of WebStress on E-boutique's home page (after server maintenance)

Median Response Time Related to Simultaneous Users (E-Boutique HTML after Server Maintenance)

Mean Response Time Related to Simultaneous Users (E- Boutique HTML after Server Maintenance)

Median Response Time Related to Simultaneous Users (E-Boutique HTML after Server Maintenance)- Filtered Responses

Mean Response Time Related to Simultaneous Users (E- Boutique HTML after Server Maintenance)-Filtered Responses

Error Rates for E-Boutique HTML after Server Maintenance

Comparison of Median Responses vs. Filtered Median Responses (E-Boutique HTML after Server Maintenance)

Comparison of Mean Responses vs. Filtered Median Responses (E-Boutique HTML after Server Maintenance)

Results of WebStress on E-boutique's Streaming Media (RealServer)

Median Response Time Related to Simultaneous Users (RealServer Streaming Media)

Mean Response Time Related to Simultaneous Users (RealServer Streaming Media)

Mean Response Time vs. Median Response Time - RealServer Streaming Media

Various Graphs

Comparison of Median of All Results With Server Maintenance (Order Processing Servlet)

Comparison of all Mean Responses Regarding Server Maintenance (Order Processing Servlet)

Comparison of Median Results With Server Maintenance (Order Processing Servlet) - Filtered Responses

Comparison of Mean Results With Server Maintenance (Order Processing Servlet) - Filtered Responses

Comparison of Median of All Results With Server Maintenance (E-Boutique HTML)

Comparison of Mean of All Results With Server Maintenance (E-Boutique HTML)

Comparison of Median Results With Server Maintenance (E-Boutique HTML) - Filtered Responses

Comparison of Mean Results With Server Maintenance (E-Boutique HTML) - Filtered Responses

Comparison of Error Rates for the Order Processing Servlet Regarding Server Maintenance

Comparison of Error Rates for E-Boutique HTML Regarding Server Maintenance

Comparison of Best Error Rates in Each Test (Servlet, HTML, Streaming Media)

Comparison of Best Median Response Times in Each Test

Comparison of Best Mean Response Times in Each Test

Comparison of Best Median Response Times in Each Test (Filtered Responses)

Comparison of Best Mean Response Times in Each Test (Filtered Responses)