On Sunday 30 June 2002 9:25 pm, Craig R. McClanahan wrote: > > Will always print null. > > > > I assume I can get at the session from this level and I'm obviously doing > > something dumb. Are there any obvious things I should check? > > Try this slight variation (based on what Catalina does in the getSession() > method of AuthenticatorBase): > > HttpServletRequest hrequest = (HttpServletRequest) request.getRequest(); > HttpSession session = hrequest.getSession(true);
Already tried that, and sadly it didnt work :( > The code you quoted above shouldn't actually compile, because you're > calling getSession() on the internal HttpRequest interface, but there is > no getSession() method on that interface. You need the extra getRequest() > call to get to the HttpServletRequest object that would be handed to a > servlet -- that's the one with the getSession() method that operates as > you need it to. Yea I know, I copied rather than pasting and mistyped the casting. The mystery goes on. John -- John Baker, BSc CS. Java Developer, TEAM Slb. (http://www.teamenergy.com/) The views expressed in this mail are my own. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>