tsx:repeat tag JavaServer Pages syntax

 

tsx:repeat tag JavaServer Pages syntax

The <tsx:getProperty> tag repeats a block of HTML tagging. Use the <tsx:repeat> syntax to iterate over a database query results set. The <tsx:repeat> syntax iterates from the start value to the end value until one of the following conditions is met:

If an exception of the types ArrayIndexOutOfBoundsException or NoSuchElementException is created before a block completes, output is written only for the iterations up to and not including the iteration during which the exception was created. All other exceptions results in no output being written for that tag instance.

This section describes the syntax of the <tsx:repeat> tag:

<tsx:repeat index="name" start="starting_index" end="ending_index">
</tsx:repeat>

where:




Related concepts
JavaServer Pages

Related reference
Web applications: Resources for learning