ZK - Open Source Ajax Java FrameworkZK - Open Source Ajax Java Framework

How to access jsp session in zk java page...

aks
18 Jan 2012 05:16:42 GMT
18 Jan 2012 05:16:42 GMT

Hello,
can anybody tell me that how to access jsp session value in zk java page...
Is it possible or not.. I have set value to the session in jsp page using session.setAttribute("str",propStr);
n i m trying to access it in zk java page by creating session object as
HttpSession session= request.getSession(true);
bt here i m getting NULLPOINTEREXCEPTION...
Please help me out..
Is it right way to do the same or provide me with right solution for the same...

Thank you in advance..

Kailas
18 Jan 2012 06:17:41 GMT
18 Jan 2012 06:17:41 GMT

Hi Aks,

Try this code

               Executions.getCurrent().getSession().getNativeSession();
               //or   Sessions.getSession.getNativeSession();

Read getNativeSession()