Home > Contents > Index >
Expanded TOC   |    Accordion TOC   |    Annotated TOC   |    Index

 

ICS.ReadPage

Retrieves the results of a Content Server page evaluation.

Syntax

Parameters

pagename
Pagename entry in the SiteCatalog.

vIn
List of name/value pairs to pass as input parameters to the page. These are the only variables available to the page. When the evaluation is complete, the original variables are restored. If vIn is null, the current variable set is used, and may be modified during the page evaluation.

Description

The ReadPage method retrieves the results of a Content Server page evaluation. This method invokes a page inline with the current evaluation. It creates a new ContentServer instance and evaluates the page in context. The resulting output is returned in a string.

You must have appropriate Content Server ACLs in order to read the specified pagnename.

Returns

Returns a string containing the results of the page evaluation. Returns null on error.

Errno

If an error occurs, errno will be set appropriately. Use GetErrno () to find the error number.

Example

The following code causes the HTML for the specified page to be stored in a string variable named thePage:

See Also

InsertPage

 

  Home > Contents > Index >

FatWire JAVA Reference
Copyright 2005 by FatWire Software
All rights reserved.