On Fri, Oct 2, 2009 at 7:00 AM, rintcius <[email protected]> wrote: > > No, I think you mean there is not a guaranteed **session** (it is > S.servletSession that returns a Box) > > I agree that once I go through the servletSession I should not just > open_! the Box. > But that's not the point I am trying to make. I think there should be > a way to get the ServletContext without going through the > servletSession. > In other words: It's quite possible that there is no session in a lift > snippet, but there always is a ServletContext (I assume..). >
You assume incorrectly. It's possible that Lift is servicing requests from different sources. The context of the request is going to depend on how the current session is instantiated. > However, it's a different question whether there's currently a method > available in lift that enables me to get the ServletContext from a > snippet (I couldn't find it). > > Rintcius > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
