You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Peter Dawn <pe...@gmail.com> on 2006/06/19 02:37:50 UTC

servlet listener class session variable

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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org