Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
ICS.InsertPage
Inserts the results of a Sites page evaluation at the current position in the output stream.
Syntax
public boolean InsertPage(String pagename, FTVAlList vIn)Parameters
pagename
- Pagename entry in the SiteCatalog.
vIn
- List of name/value pairs to be passed 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
InsertPage
method inserts the results of a Sites page evaluation at the current position in the output stream.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 streamed as if included inline.
You must have appropriate Sites ACLs in order to insert the specified
pagnename
.Returns
Returns
true
for success andfalse
for failure.Error Numbers
If an error occurs,
errno
will be set appropriately. Use GetErrno to find the error number.Example
The following code demonstrates how to insert a page. The code does not pass any arguments through the
inList
:String pagename = "FutureTense/Apps/AdminForms/AdminFrame"; FTValList inList = new FTValList(); ics.ClearErrno(); boolean insertpagesuccess = ics.InsertPage(pagename, inList); if ( ! insertpagesuccess ) { int errno = ics.GetErrno(); // handle error }See Also
Home > Contents > Index > ![]()
Oracle JAVA Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.