September 18, 2014
Hot Topics:
RSS RSS feed Download our iPhone app

The PHP/Java App in Action, Page 2

  • March 21, 2012
  • By Octavia Andreea Anghel
  • Send Email »
  • More Articles »

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.


PHP and Java -- Default Shopping Cart
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.


PHP and Java -- User Buying Bouquets from Shopping Cart
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.


PHP and Java -- Removing an Item from the Shopping Cart
Click here for larger image

Figure 3. Removing an Item from the Shopping Cart


Tags: Java, PHP

Originally published on http://www.developer.com.

Page 2 of 2



Comment and Contribute

 


(Maximum characters: 1200). You have characters left.

 

 


Sitemap | Contact Us

Rocket Fuel