bea.jolt.pool.asp
Class AspTemplate

java.lang.Object
  |
  +--bea.jolt.pool.asp.AspTemplate
Direct Known Subclasses:
Template

public class AspTemplate
extends java.lang.Object

This class provides the Template implementation for the Microsoft Active Server Pages environment. The output of the template content is sent to the web server response buffer.


Constructor Summary
AspTemplate()
           
 
Method Summary
 int eval(DataSet[] data)
          Replace the tags in this cached template with the values from a list of data set objects, and send the output to the client.
 int evalFile(java.lang.String path, DataSet[] data)
          Replace the tags in a template file with the values from a list of data set.
 int load(java.lang.String path)
          Load the template into memory for faster access.
 void unload()
          Unload the cached template.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AspTemplate

public AspTemplate()
Method Detail

eval

public final int eval(DataSet[] data)
Replace the tags in this cached template with the values from a list of data set objects, and send the output to the client. If there is any I/O error, this method returns -1.
Parameters:
data - An array of data set (AspDataSet or AspResult), or null
Returns:
0 if successful; otherwise, -1.

evalFile

public final int evalFile(java.lang.String path,
                          DataSet[] data)
Replace the tags in a template file with the values from a list of data set. The list is an array object. If the template file cannot be opened or there is an I/O error, -1 will be returned.
Parameters:
path - A path of the template file.
data - An array of data set (AspDataSet or AspResult) objects.
Returns:
0 if successful; otherwise, -1.

load

public final int load(java.lang.String path)
Load the template into memory for faster access. The contents are cached until the unload() is called.
Parameters:
path - A path of the template file
Returns:
0 if successful, -1 if file ca not be opened.

unload

public final void unload()
Unload the cached template.