Examine the Use Case in Figure 4 and explain the MVC architecture of the online bookstore (the model the view and controllers) needed to Lookup Books and Add to Shopping Cart.
Lookup Books (104)
Model: Lookup Books
View: Book Search page, Book Search Result page
Controller: Book Search Controller
Customers input search strings in the Book Search page.
The Book Search Controller passes the searching criteria to Lookup Books for processing and redirects the display to Book Search Result page.
While rendering of the view, Model will be requested to display the search result.
Add to Shopping Cart (105)
Model: Add to Shopping Cart
View: Add to Shopping Cart page, Shopping Cart Result page
Controller: Add to Shopping Cart Controller
Customers input books information in the Add to Shopping Cart page.
The Add to Shopping Cart Controller passes the book information to Add to Shopping Cart for processing and redirects the display to Shopping Cart Result page.
While rendering of the view, Model will be requested to display the result.
Saturday, May 29, 2010
Subscribe to:
Post Comments (Atom)


No comments:
Post a Comment