> If I start up a Jetty web application and set an attribute to the
> HttpContext like so
[quoted text clipped - 4 lines]
>
> Thanks
Haven't used Jetty meself, but for plain-ol' servlets it's:
HttpSession playerSession = httpServletRequest.getSession();
playerSession.setAttribute("objectname", obj);
And on the other side:
HttpSession playerSession = httpServletRequest.getSession();
Object obj = playerSession.getAttribute("objectname");
If Jetty offers the setAttribute() of the basic servlet but not the
getAttribute() then I'm sure there's a good reason for it ...
.ed
--
www.EdmundKirwan.com - Home of The Fractal Class Composition
Bruce Lee - 05 Mar 2006 15:48 GMT
> > If I start up a Jetty web application and set an attribute to the
> > HttpContext like so
[quoted text clipped - 20 lines]
> --
> www.EdmundKirwan.com - Home of The Fractal Class Composition
thanks for the reply. I'm looking at invoking an object at the top of the
server app and passing it down to the servlet level though. That'll work ok
for session but i want a permanent object I can control from the top.