|
|
|
|
Lottery Sample using JSP 1.2 feature JSP page using XML syntax.
|
This example demonstrates use of new JSP 1.2 feature JSP page using XML syntax .
This sample picks lottery numbers. The chosen lottery numbers are displayed in the page as a set of numbered balls.
There is a single image for each numbered ball. The JSP page uses a Bean to generate the lottery numbers.
As each image is named identically except for the number it represents, generating the page is a simple operation of looping over the numbers generated by the Bean and appending the number to the end of the image name.
|
|