tsx:repeat tag JSP 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:
- The end value is reached.
- An exception is thrown.
The output of a <tsx:repeat> block is buffered until the block completes. If an exception is thrown before a block completes, no output is written for that block.
This section describes the syntax of the <tsx:repeat> tag...<tsx:repeat index=name start="starting_index" end="ending_index"> </tsx:repeat>
Represents an optional name used to identify the index of this repeat block. The value is case-sensitive and its scope is the JSP file.
Represents an optional starting index value for this repeat block. The default is 0.
Represents an optional ending index value for this repeat block. The maximum value is 2,147,483,647.
If the value of the end attribute is less than the value of the start attribute, the end attribute is ignored.
See AlsoJSP files
Webapplications: Resources for learning