Chapter 1 Dynamo Tags


Overview

Dynamo tags are similar to HTML tags, except Dynamo tags provide dynamic content whereas HTML tags provide static content.

Dynamo tags are embedded in documents as HTML comments, which are enclosed in <!-- and --> . Dynamo tags begin with an HTML comment followed by the tag name, for example <!--SCRIPT .

Tags that are enclosed in HTML comment tags are ignored by everything except the Dynamo Application Server.

The syntax for Dynamo tags is shown in the following table. Although all tags begin the same way, they do not all end the same way.

Dynamo Tag

Syntax

COMPONENT

<!--COMPONENT-->

DATA

<!--DATA-->

DOCUMENT

<!--DOCUMENT-->

ELSE

<!--ELSE-->

ELSEIF

<!--ELSEIF-->

ENDIF

<!--ENDIF-->

EVALUATE

<!--EVALUATE-->

EXECUTE

<!--EXECUTE-->

FORMATTING

<!--FORMATTING-->
<!--/FORMATTING-->

IF

<!--IF-->

INCLUDE

<!--INCLUDE-->

LABEL

<!--LABEL-->

MAILPEICE

<!--MAILPIECE-->
...body of mail piece
<!--/MAILPIECE-->

SCRIPT

<!--SCRIPT
...DynaScript code
-->

SQL

<!--SQL
...SQL query
-->

SQL_ERROR_CODE

<!--SQL_ERROR_CODE-->

SQL_ERROR_INFO

<!--SQL_ERROR_INFO-->

SQL_INSERT

<!--SQL_INSERT-->

SQL_ON_ERROR

<!--SQL_ON_ERROR-->
<!--/SQL_ON_ERROR-->

SQL_ON_NO_ERROR

<!--SQL_ON_NO_ERROR-->
<!--/SQL_ON_NO_ERROR-->

SQL_ON_ROWS

<!--SQL_ON_ROWS-->
<!--/SQL_ON_ROWS-->

SQL_ON_NO_ROWS

<!--SQL_ON_NO_ROWS-->
<!--/SQL_ON_NO_ROWS-->

SQL_STATE

<!--SQL_STATE-->

Several Dynamo tags have attributes. Some attributes are optional, while others must be specified for tags to work properly. These attributes give you greater control over resulting output by allowing you to be more specific in your requirements.

Note  

Server side
Dynamo tags are processed by the server as opposed to HTML tags which are processed by the browser.

 


Copyright © 1999 Sybase, Inc. All rights reserved.