InfoCenter Home >
4: Developing applications >
4.2: Building Web applications >
4.2.2: Developing JSP files >
4.2.2.3: Overview of JSP file content >
4.2.2.3.8: IBM extensions to JSP .91 syntax >
4.2.2.3.8.1: JSP .91 syntax: Tags for variable data

4.2.2.3.8.1: JSP .91 syntax: Tags for variable data

The variable data syntax enables you to put variable fields on your HTML page and have your servlets and JavaBeans dynamically replace the variables with values from a database when the JSP output is returned to the browser.

The table summarizes the tags. Click a tag to link to its syntax description.

Goal Tag Details
Embed variables in a JSP file <INSERT> This is the base tag for specifying variable fields.
Repeating a block of HTML tagging that contains the <INSERT> tags and the HTML tags for formatting content <REPEAT> Use the <REPEAT> tag to iterate over a database query results set. The <REPEAT> tag iterates from the start value to the end value until one of the following conditions is met:
  • The end value is reached.
  • An ArrayIndexOutofBoundsException is thrown.

The output of a <REPEAT> block is buffered until the block completes. If an exception is thrown before a block completes, no output is written for that block.

The above tags are designed to pass entact through HTML authoring tools. Each tag has a corresponding end tag. Each tag is case-insensitive, but some of the tag attributes are case-sensitive.

Go to previous article: IBM extensions to JSP .91 syntax Go to next article: JSP .91 <INSERT> tag syntax

 

 
Go to previous article: IBM extensions to JSP .91 syntax Go to next article: JSP .91 <INSERT> tag syntax