How to access sessionScope from JSF Page in ADF
964155Dec 22 2012 — edited Dec 24 2012Hi,
I Create Employee backingbean where i can store EmployeeName in sessionScope,
FacesContext facescontext=FacesContext.getCurrentInstance();
ExternalContext econtext=facescontext.getExternalContext();
HttpSession session=(HttpSession)econtext.getSession(true);
session.setAttribute("EmployeeName", cst.getString("P_Ename"));
// register outcome value from DB with "EmployeeName" in SessionScope
I want to access the sessionScope Object to get Value and Displayed into JSF Page
for Example af:InputText in JSF Page displayed EmployeeName.
for this we use expressionLanguage #{sessionScope.EmployeeName} as value of af:InputText in JSF Page, but we dont value.
Can any one please give the correct approch to get Value from sessionscope.
Thanks,
Kumar