From: Keats <ke...@xa...> - 2004-02-20 22:19:58
|
Hey Lars, WebContext.getSession() is just a convenience method that is equivalent to Request.getSession(). Calling getProperty("Session") will return the Session which is provided (lazily) by the SessionTool. Hope this clears it up for you. Keats ----- Original Message ----- From: "Lars George" <la...@wo...> To: <web...@li...> Sent: Wednesday, February 18, 2004 5:52 PM Subject: [WebMacro-user] WebContext.getSession() vs. Request().getSession > Hi, > > I am just wondering what the difference is between: > > A) WebContext.getSession() > > and > > B) WebContext.getRequest().getSession() > > See, A uses this: > > return (HttpSession) getProperty("Session"); > > Now, I searched everywhere in the v1.1 source and settings file and I cannot > see where that property is actually set. Even the SessionTool uses variant B > above. > > Do you know? > > Thanks, > Lars > > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > Webmacro-user mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webmacro-user > |