skip to main content
Tutorials and samples > Starting the samples > Common features of Faces samples > How can I access the AbstractSampleContext
 
How can I access the AbstractSampleContext
The samples can access the AbstractSampleContext instance through the JSF Managed Bean facility. The typical name for the managed bean is sampleContext and the default scope is session.
In your JSP™ page, you can access the sample context by using the standard JSF Expression Language syntax. For example, to access the IlpContext bean property of the AbstractSampleContext, you would use this Expression Language fragment: "#{sampleContext.context}".

Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.