Integration Server 10.11 | Dynamic Server Pages and Output Templates Developer's Guide | Using Dynamic Server Pages (DSPs) | Using the DSP Tags | Inserting Text Files in a DSP
 
Inserting Text Files in a DSP
The %include% tag allows you to insert a text file in a DSP. When you use the %include% tag, the DSP Processor inserts the specified file and evaluates its contents (and processes any tags that it contains) from top to bottom at run time.
The basic format of the %include% tag is as follows, where fileName specifies the name of the file that you want to insert into the DSP. (If fileName is not in the same directory as the DSP, you must specify its path relative to the DSP as shown by the example.)
  %include fileName%
Example
.
.
.
%switch acctType%
%case ‘Platinum’%
%include forms\platorderform.txt%
%case ‘Gold’%
%include forms\goldorderform.txt%
%case%
%include forms\regorderform.txt%
%endswitch%
When you insert a file, it inherits the scope that is current at the point where you call it. For additional information about the %include% tag, see the %include% tag description on %include%.