The PHP/Java App in Action, Page 2
The PHP/Java App in Action
You can see the output of mixing PHP with Java in this application by browsing to localhost:8085/products/productclist.php. Figures 1-3 show screenshots of user interactions with the completed shopping cart application.
Figure 1 shows the default shopping cart. The items are listed using the PHP script that calls the flowerBean class.
Click here for larger image
Figure 1. Default Shopping Cart
Figure 2 shows a user buying some of the bouquets using each corresponding Buy button. The shopping cart lists them in the same page using the PHP script that calls the flowerBean class.
Click here for larger image
Figure 2. User Buying Bouquets from Shopping Cart
Figure 3 shows a user removing an item from the shopping list, after which the shopping cart shows the new listing of items.
Click here for larger image
Figure 3. Removing an Item from the Shopping Cart
