All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class bea.jolt.pool.asp.AspTemplate

java.lang.Object
   |
   +----bea.jolt.pool.asp.AspTemplate

public class AspTemplate
extends 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 Index

 o AspTemplate()

Method Index

 o eval(DataSet[])
Replace the tags in this cached template with the values from a list of data set objects, and send the output to the client.
 o evalFile(String, DataSet[])
Replace the tags in a template file with the values from a list of data set.
 o load(String)
Load the template into memory for faster access.
 o unload()
Unload the cached template.

Constructors

 o AspTemplate
 public AspTemplate()

Methods

 o 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 success; otherwise, -1.
 o evalFile
 public final int evalFile(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 success; otherwise, -1.
 o load
 public final int load(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 success, -1 if file can't be opened.
 o unload
 public final void unload()
Unload the cached template.


All Packages  Class Hierarchy  This Package  Previous  Next  Index