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.7: IBM extensions to JSP syntax >
4.2.2.3.7.1: JSP syntax: Tags for variable data

4.2.2.3.7.1: JSP syntax: Tags for variable data

The variable data syntax enables you to put variable fields in your JSP file 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
Get the value of a bean to display in a JSP. <tsx:getProperty> This IBM extension of the Sun JSP <jsp:getProperty> tag implements all of the <jsp:getProperty> function and adds the ability to introspect a database bean that was created using the IBM extension <tsx:dbquery> or <tsx:dbmodify>.

Note:  You cannot assign the value from this tag to a variable. The value, generated as output from this tag, is displayed in the Browser window.

Repeat a block of HTML tagging that contains the <tsx:getProperty> syntax and the HTML tags for formatting content. <tsx:repeat> 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.

Go to previous article: IBM extensions to JSP syntax Go to next article: JSP syntax: <tsx:getProperty> tag syntax and examples

 

 
Go to previous article: IBM extensions to JSP syntax Go to next article: JSP syntax: <tsx:getProperty> tag syntax and examples