--- Carlos Alonso Vega <[EMAIL PROTECTED]> wrote: > > I am trying to obtain data about a session inside a > servlet, the code > seems to be simple as > > localSession = > Ctx.getManager().findSession(sessionId); > > My problem is that I do not know how to obtain the > Ctx object from a > request (HttpServletRequest) > > Thanks in advance >
Carlos, To obtain the HttpSession for the current request: HttpSession sess = req.getSession(); OR boolean create = false; (or true) HttpSession sess = req.getSession(create); HTH, Bob __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]