Home > Contents > Index >
ICS.GetObj
Retrieves an object that was saved using
SetObj()
orPushObj().
Syntax
public Object GetObj(String name)Parameters
name
- Name of the object.
Description
The
GetObj
method retrieves an object that was saved usingSetObj
. Objects managed usingSetObj
andGetObj
are available within the context of the current page evaluation. They are not persistent across page requests and they cannot be shared by separate page execution threads.Returns
Object saved. Returns
null
on error.Example
The following code gets an object:
ics.ClearErrno(); clearResult(); MyObject myObj = new MyObject(9,10); boolean flag = ics.SetObj("myObjName", myObj); Object strObj = ics.Getobj
("myObjName"); errNum = ics.GetErrno();See Also
Home > Contents > Index > ![]()
Oracle JAVA Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.