previous
|
index
A Last
.tag
File Example
Here is a page that displays the same products in two ways:
http://redrock.d.umn.edu:8082/jsp-examples/jsp2/tagfiles/products.jsp
One
.tag
file produces both displays:
displayProducts.tag
The contents of the HTML table cells are created dynamically using
jsp:invoke
on a JSP page fragment
The fragments are specified through attributes whose names are
normalPrice
and
onSale
The JSP uses the
displayProducts
tag twice, with different fragments specified for each:
products.jsp
.
previous
|
index