Order the Book

coreservlets
Class SaleEntry

java.lang.Object
  |
  +--coreservlets.SaleEntry

public class SaleEntry
extends Object

Simple bean to illustrate the various forms of jsp:setProperty.

Taken from Core Servlets and JavaServer Pages from Prentice Hall and Sun Microsystems Press, http://www.coreservlets.com/. © 2000 Marty Hall; may be freely used or adapted.


Constructor Summary
SaleEntry()
           
 
Method Summary
 double getDiscountCode()
           
 double getItemCost()
           
 String getItemID()
           
 int getNumItems()
           
 double getTotalCost()
           
 void setDiscountCode(double discountCode)
           
 void setItemID(String itemID)
           
 void setNumItems(int numItems)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaleEntry

public SaleEntry()
Method Detail

getItemID

public String getItemID()

setItemID

public void setItemID(String itemID)

getDiscountCode

public double getDiscountCode()

setDiscountCode

public void setDiscountCode(double discountCode)

getNumItems

public int getNumItems()

setNumItems

public void setNumItems(int numItems)

getItemCost

public double getItemCost()

getTotalCost

public double getTotalCost()

Order the Book

Order
CSAJSP @ amazon.com

Return to Top-Level Source Code Archive