180 likes | 355 Views
Building an e-Business: Internet and Web Programming. Problem Statement. Bug2Bug.com is an online bookstore Each of the books are stored in the database. Bug2Bugs.com publishes the contents of its database on the Web. Storefront model is used.
E N D
Problem Statement • Bug2Bug.com is an online bookstore • Each of the books are stored in the database. • Bug2Bugs.com publishes the contents of its database on the Web. • Storefront model is used. • Customers can add books to their shopping cart with the simple click of a button. • How to implement?
Client Web Middle Data Three-tier architecture for the Bug2Bug.com online bookstore. Web Server ASP Access Browser HTML ADO Multitier Application Model • Also called n-tier application • Divided application into several parts – tiers • Each tier can be located either on the same, or on different place (computer)
Multitier Application Model • Top tier • The client • Use HTML to design the interfaces with the bookstore • Renders the HTML documents from the middle tier • E.g., HTML files by ASP, XML and XSL • Bottom tier • The database • Accessed by ActiveX Data Object (ADO) from the server • Middle tier • The server • Interacts with both the top tier and the bottom tier
Bug2Bug.com’s home page (Welcome.html). Home Page • When click “Enter”, call the books.asp
List of available books (books.asp). • Call book1.asp, book2.asp, and book3.asp separately when clicks the different book title
Contents of the shopping cart (viewCart.asp). • Shopping cart is managed by two ASPs –addToCart.asp and viewCart.asp • Click “Ckeck Out” to call order.html
alert box User attempting to submit order with empty field (order.html).
User trying to submit order with State field empty (order.html).
User attempting to check-out form with an invalid state abbreviation (order.html).