JSP 2.0 Examples - Display Products Tag File


This JSP page invokes a tag file that displays a listing of products. The custom tag accepts two fragments that enable customization of appearance. One for when the product is on sale and one for normal price.

The tag is invoked twice, using different styles


Products

Item: Hand-held Color PDA
Price: $298.86
Item: 4-Pack 150 Watt Light Bulbs
Was: $2.98
Now: $2.32
Item: Digital Cellular Phone
Price: $68.74
Item: Baby Grand Piano
Price: $10,800.00
Item: Luxury Car w/ Leather Seats
Was: $23,980.00
<`>Now; ,21,070.00

Products (Same tag, alternate style)

Hand-held Color PDA @ $298.86 ea. 4-Pack 150 Watt Light Bulbs @ $2.32 ea. (was: $2.98) Digital Cellular Phone @ $68.74 ea. Baby Grand Piano @ $10,800.00 ea. Luxury Car w/ Leather Seats @ $21,070.00 ea. (was: $23,980.00)