Categories

JAVA DATEBASE
Technology Network Community
Oracle Database
Fusion Middleware
Development Tools
Java
Desktop
Server & Storage Systems
Enterprise Management
Berkeley DB Family
Cloud Computing
Big Data
Business Intelligence
Architecture
Migration and Modernization
E-Business Suite
Siebel
PeopleSoft Enterprise
JD Edwards World
Industries
JD Edwards EnterpriseOne
User Productivity Kit Pro (UPK) and Tutor
Governance, Risk & Compliance (GRC)
Master Data Management (MDM)
Oracle CRM On Demand
On Demand: SaaS and Managed Applications
AutoVue Enterprise Visualization
Primavera
ATG
Agile PLM
Endeca Experience Management
Fusion Applications
Archived Forums

 



Tags

JDeveloper and ADF


ADF 10g:HttpServletRequest.getSession vs ExternalContext.getSession


Hi all,   I'm reviewing some code in our application and I would like to confirm my understanding of how to properly use session attributes on the view layer.  In my servlet doFilter method I get my session using:   HttpSession session = servletRequest.getSession(true);  I also came across this blog post: http://andrejusb.blogspot.com/2012/01/how-to-access-session-scope-in-adf-bc.html  which calls getSession from FacesContext.getCurrentInstance().getExternalContext.getSession http://docs.oracle.com/cd/E17802_01/j2ee/j2ee/javaserverfaces/1.2/docs/api/javax/faces/context/ExternalContext.html#getSession(boolean)  Am I correct in my understanding that according to the javadoc, the getExternalContext.getSession returns the same HttpSession object as in HttpServletRequest.getSession?   Many thanks Wes

Hi,  yes, this is correct  Frank


Related Links

access another entity row
Issue with Add/Edit screen list values
How to let content in the middle of the browser?
Sizing and positioning of an af:decorativeBox
Export to XML - Table
JDeveloper Extension - PropertyModel
XLIFF resource bundles, how to use programmatic in ADF Faces
[HELP] How adjust ADF page to display charactor correctly for 'ZHT32EUC'?
where we can put the custom properties file in JDeveloper project folder
Webservice Data control..
ADF security:not getting securityContext.authenticated in ADF BIndings
Rows should be null when i drag drop the VO on the page in ADF 11g
replicating ant script (env vars and copy of common files) in JDeveloper
Reconcile database tables to offline tables in JDeveloper
af:breadCrumbs action problem
Cannot use a css file from a subfolder page