|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ora.jsp.beans.shopping.CatalogBean
This class represents a product catalog. It holds a list of products available for sale.
This is just a demo so the product list is hardcoded, created at instantiation. A real version would get the information from an external data source.
Field Summary | |
private java.util.Vector |
catalog
|
Constructor Summary | |
CatalogBean()
Constructor. |
Method Summary | |
ProductBean |
getProduct(java.lang.String id)
Returns one product, or throws an exception if not found |
java.util.Enumeration |
getProductList()
Returns a list of all products. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.util.Vector catalog
Constructor Detail |
public CatalogBean()
Method Detail |
public java.util.Enumeration getProductList()
public ProductBean getProduct(java.lang.String id) throws java.lang.Exception
id
- the product id. The String version is to be able
to use the useProperty actionjava.lang.Exception
- if the id doesn't match a product
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |