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

NameClashException
Bind variable names showing up in the table filter
How to display a mssg on page before the adf lifecycle process has ended?
EJB3 create entity without persists it
NullPointerException: FacesContext.getRenderKit()
SQL error during statement preparation. Statement: INSERT INTO
How to run a bean when authentication happens.
UCM RIDC
How to set rendered = true only when variable = Y ? #ADF
Search data in VO, Need help.
Contact us form
disable fields in query panel
How to set order (sequence) of inter-dependent seed data files.
<af:selectOneChoice> valueChangeListener is not working .
accesing view attributes
How to filter a static List VO