hi all,

i am unable to store a session variable from within my servlet
listener class which is running in the background and starts up when
the web app starts up. it implements servletcontextlistener. i have
tried the following,
HttpSession session;
String a = "asdfasdfasf";
session.setAttribute("test",a);

however when i retreive this session variable from some of the other
pages within my web app, it returns null. in some of the other pages i
have,
String s = (String)
event.getRequestCycle().getRequestContext().getSession().getAttribute("test");

can somebody help me out pls. thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to