Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
ICS.ReadPage
Retrieves the results of a Sites page evaluation.
Syntax
public String ReadPage(String pagename, FTValList vIn)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
isnull
, the current variable set is used, and may be modified during the page evaluation.
Description
The
ReadPage
method retrieves the results of a Sites page evaluation. This method invokes a page inline with the current evaluation. It creates a new Sites instance and evaluates the page in context. The resulting output is returned in a string.You must have appropriate Sites ACLs in order to read the specified
pagnename
.Returns
Returns a string containing the results of the page evaluation. Returns
null
on error.Error Numbers
If an error occurs,
errno
will be set appropriately. Useto find the error number.
GetErrno
()Example
The following code causes the HTML for the specified page to be stored in a string variable named
thePage
:
String pagename = "FutureTense/Apps/AdminForms/AdminFrame"; FTValList inList = new FTValList(); ics.ClearErrno(); String thePage = ics.ReadPage ( pagename, inList ); if ( thePage == null ) { int errno = ics.GetErrno
(); // handle error } else { // Evaluate thePage }See Also
Home > Contents > Index > ![]()
Oracle JAVA Reference
Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.