On Sat, Oct 3, 2009 at 2:56 AM, rintcius <[email protected]> wrote: > > Hmm, I am still confused... > > Maybe better to get into a specific use case. > Suppose i have the following: > 1) a lift application just serving stuff via the Servlet interface > 2) an object in the ServletContext (let's say spring's > ApplicationContext) > 3) a snippet that does not need a session but needs access to this > object in the ServletContext > (let's say just some static content but reusing spring's i18n > support) > > How do I get access to this object in the ServletContext from such a > snippet? > Or are you telling me that this use case makes no sense in Lift? >
I'm saying "don't use open_!" The thing you're opening may not contain anything and when it doesn't, you get an exception. See http://blog.lostlake.org/index.php?/archives/50-The-Scala-Option-class-and-how-lift-uses-it.html > > 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 -~----------~----~----~----~------~----~------~--~---
