CSE 190: Internet E-Commerce Exam 2 Sample Questions.

Slides:



Advertisements
Similar presentations
Not like the State of Virginia. What is State in ASP.NET? Services (like web services) are Stateless. This means if you make a second request to a server,
Advertisements

Lecture 6/2/12. Forms and PHP The PHP $_GET and $_POST variables are used to retrieve information from forms, like user input When dealing with HTML forms.
 Copyright Wipro Technologies JSP Ver 1.0 Page 1 Talent Transformation Java Server Pages.
Session 13 Active Server Pages (ASP) Matakuliah: M0114/Web Based Programming Tahun: 2005 Versi: 5.
Sapana Mehta (CS-6V81) Overview Of J2EE & JBoss Sapana Mehta.
DT228/3 Web Development multi page applications/ sharing data.
CSE 190: Internet E-Commerce Lecture 7. HTML Templates Designed to separate server side logic from HTML presentation Key features –Escapes from HTML into.
Servlets and a little bit of Web Services Russell Beale.
Multiple Tiers in Action
CSE 190: Internet E-Commerce Lecture 8. Application Tier Architecture Model View Controller pattern Model 2 architecture Statelessness of application.
Chapter 11 ASP.NET JavaScript, Third Edition. 2 Objectives Learn about client/server architecture Study server-side scripting Create ASP.NET applications.
1 The World Wide Web. 2  Web Fundamentals  Pages are defined by the Hypertext Markup Language (HTML) and contain text, graphics, audio, video and software.
SE-2840 Dr. Mark L. Hornick1 Java Servlet-based web apps Servlet Architecture.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Beginning Active Server Pages Barry Sosinsky Valda Hilley Programming.
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.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
CSCI 6962: Server-side Design and Programming Course Introduction and Overview.
Component-Based Software Engineering Internet Applications Paul Krause.
With your friendly Web Developer, Chris.. Terminology  HTML - > Hypertext Markup Language  CSS -> Cascading Style Sheet  open tag  close tag  HTTP->Hypertext.
IT533 Lectures Session Management in ASP.NET. Session Tracking 2 Personalization Personalization makes it possible for e-businesses to communicate effectively.
Lecture 7 Interaction. Topics Implementing data flows An internet solution Transactions in MySQL 4-tier systems – business rule/presentation separation.
Advanced Web Forms with Databases Programming Right from the Start with Visual Basic.NET 1/e 13.
Elements of ASP Documents Adapted from MCDN Web Workshop ( and Webmonkey’s Introduction to Active.
CSE 154 LECTURE 12: COOKIES. Including files: include include("filename"); PHP include("header.html"); include("shared-code.php"); PHP inserts the entire.
SHOPPING CARTS CHAPTER 19. E-COMMERCE Typically, an e-commerce site will have public pages and admin pages.
CS453: State in Web Applications (Part 1) State in General Sessions (esp. in PHP) Prof. Tom Horton.
CSE 190: Internet E-Commerce Lecture 5. Exam Material Lectures 1-4 (Presentation Tier) –3-tier architecture –HTML –Style sheets –Javascript –DOM –HTTP.
Database Application Security Models Database Application Security Models 1.
Java CGI Lecture notes by Theodoros Anagnostopoulos.
NMED 3850 A Advanced Online Design January 12, 2010 V. Mahadevan.
16-Oct-15 JSP Implicit Objects. 2 JSP Implicit Objects are the Java objects that the JSP Container makes available to developers in each page and developer.
MACIASZEK, L.A. (2001): Requirements Analysis and System Design. Developing Information Systems with UML, Addison Wesley Chapter 6 - Tutorial Guided Tutorial.
Webcommerce Computer Networks Webcommerce by Linnea Reppa Douglas Martindale Lev Shalevich.
1 Maryland ColdFusion User Group Session Management December 2001 Michael Schuler
Chapter 6 Server-side Programming: Java Servlets
Dr. Azeddine Chikh IS444: Modern tools for applications development.
DAT602 Database Application Development Lecture 16 Java Server Pages Part 2.
Sessions in PHP – Page 1 of 13CSCI 2910 – Client/Server-Side Programming CSCI 2910 Client/Server-Side Programming Topic: Sessions in PHP Reading: Williams.
Web Database Programming Week 7 Session Management & Authentication.
INTRODUCTION TO WEB APPLICATION Chapter 1. In this chapter, you will learn about:  The evolution of the Internet  The beginning of the World Wide Web,
© 2010 Computer Science Faculty, Kabul University HTTP CONTINUED… 4 TH LECTURE 2, May, 2010 Baseer Ahmad Baheer.
ASP (Active Server Pages) by Bülent & Resul. Presentation Outline Introduction What is an ASP file? How does ASP work? What can ASP do? Differences Between.
ECMM6018 Enterprise Networking for Electronic Commerce Tutorial 7
Web Authoring with Dreamweaver. Unit Objectives  Be able to define keywords: HTML, HTTP (protocol), browser, web server, client/server, tag, attribute,
SESSIONS 27/2/12 Lecture 8. ? Operator Similar to the if statement but returns a value derived from one of two expressions by a colon. Syntax: (expression)
PHP and Sessions. Session – a general definition The GENERAL definition of a session in the “COMPUTER WORLD” is: The interactions (requests and responses)
1 PHP HTTP After this lecture, you should be able to know: How to create and process web forms with HTML and PHP. How to create and process web forms with.
Chapter 6 Chapter 6 Server Side Programming (JSP) Part 1 1 (IS 203) WebProgramming (IS 203) Web Programming.
Raina NEC Application Object Describes the methods, properties, and collections of the object that stores information related to the entire Web.
JSP / Servlets and Beans
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Chapter 22 World Wide Web (HTTP) Chapter 22 World Wide Web (HTTP) Mi-Jung Choi Dept. of Computer Science and Engineering
Distributed Web Systems Cookies and Session Tracking Lecturer Department University.
Fundamentals of Web DevelopmentRandy Connolly and Ricardo HoarFundamentals of Web DevelopmentRandy Connolly and Ricardo Hoar Fundamentals of Web DevelopmentRandy.
ASP – Web Programming Class  Ravi Anand. ASP – Active Server Pages What is ASP? - Microsoft Technology - Can Run using IIS/PWS/Others - Helps us create.
CX Introduction to Web Programming
WWW and HTTP King Fahd University of Petroleum & Minerals
Web Development Web Servers.
Y.-H. Chen International College Ming-Chuan University Fall, 2004
Basic XHTML Tables XHTML tables—a frequently used feature that organizes data into rows and columns. Tables are defined with the table element. Table.
Open Source Programming
Web App vs Mobile App.
Chapter 27 WWW and HTTP.
Web Systems Development (CSC-215)
Introduction to Servlets
HTML5 and Local Storage.
Cookies and Sessions.
Presentation transcript:

CSE 190: Internet E-Commerce Exam 2 Sample Questions

Exam 2 Sample 1.(3 pts) Write an ASP page main.asp that includes an ASP component welcome.asp in the body of the document. welcome.asp should be a bold div with the text “Welcome, !” where is the value of the cookie displayname. Be sure to show the contents of both files. main.asp: My shopping site welcome.jsp: Welcome, !

Exam 2 Sample 2.(2 pts) Explain the lifetime of objects created in JSP pages and what keywords control this scope. Create a Java bean named mybean in a JSP page that creates an instance of an object of class com.ebay.auctions. This instance lasts only as long as the browser’s request is being served. There are four major scopes for Java Beans in JSP: 1. application: Object lives as long as the application (ie. web service) is running. Usually this is data that is specific to the entire site (e.g. site statistics, non-personalized information). 2. session: Object lives as long as the user is actively using the application, which spans several requests. These objects contain user personalized data. 3. request: Object lives as long as the request is being processed. This contains intermediate values used to calculate data for the user; it is accessible from any included JSP page. 4. page: The object is visible only within the page it was created in. Example:

Exam 2 Samples 3.(2 pts) What’s the difference between session and persistent cookies? Show the HTTP header line in a server response that sets a persistent cookie. Persistent cookies are written to disk, and may still exist after the user closes and restarts the browser. Session cookies are discarded once the browser is closed. You would typically store a short lived session_id variable as a session cookie. Set-Cookie: lastlogin=celloplayer; expires=Sep 18, 2002;

Exam 2 Samples 4.(3 pts) Explain and diagram the model 2 architecture and its components. See lecture notes.

Exam 2 Sample 5.(2 pts) What are the consequences of changing state only in the app server’s process rather than committing the changes to a shared resource like a database? See lecture notes.

Exam 2 Sample 6.(3 pts) Write an application tier component for implementing a shopping cart. You must show the following objects: Cart and Item. Cart has methods addItem( Item ), removeItem( int ), and getItem( int ). Item has three properties Name, Price, and Status. Write a JSP page that renders the contents of the shopping cart. Then write the Java Beans that implement the functionality of Cart and Item. Note: You may use the class java.util.Vector, with the elements size(), elementAt(int), clear(), and removeElementAt(int).

Exam 2 Sample 7.(3 pts) Implement the shopping cart logic using PHP. See lecture notes.