[Lift] Re: Started integrating lift in a scala+spring project. Feedback?
I'm sorry for the late question but have you looked at Scalaffinity? http://sourceforge.net/projects/scalaffinity/ It might give you an idea or two... On Oct 1, 8:14 pm, rintcius rintc...@gmail.com wrote: Hi, I have started integrating Lift in a Scala +Springexample project (seehttp://code.google.com/p/scala-spring). This first integration just has a single template and snippet for now but should give an idea how Lift can be integrated. Before I go further with this I would like some Lift experts to review the code I have written so far. Anybody? The changeset that adds lift integration is inhttp://code.google.com/p/scala-spring/source/detail?r=18 Thanks, Rintcius --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Started integrating lift in a scala+spring project. Feedback?
Marius, Im not sure that will work as ctx is a paramater, not a val paramater. class HTTPServletContext(ctx: ServletContext) extends HTTPContext In order to do what you'd suggested wouldnt it need to be: class HTTPServletContext(val ctx: ServletContext) extends HTTPContext Thoughts? Cheers, Tim On Oct 7, 7:50 pm, marius d. marius.dan...@gmail.com wrote: Servlet dependencies are abstracted away by a dedicated layer from the rest of Lift. LiftRules.context match { case c: HTTPServletContext = c.ctx // this is a ServletContext case _ = } So you can take the ServletContext and do your stuff with it. But in this case you explicitly know that you are running Lift in a JEE web container. This abstraction is necessary to us in order to be able to run lift apps in other no JEE containers (Netty, AsyncWeb, Portlets etc). Br's, Marius On Oct 7, 8:40 pm, rintcius rintc...@gmail.com wrote: Your best bet is to go find some Java static thing that's going to give you the ServletContext Yes that could work, but is it an idea to make the liftServlet available as an object in Lift (when it has the right provider)? Then the servletContext can be obtained nicely via liftServlet.getServletContext() --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Started integrating lift in a scala+spring project. Feedback?
You are correct. I need to make this adjustment today. Thanks for pointing this out Tim. Br's, Marius On Oct 8, 2:05 pm, Timothy Perrett timo...@getintheloop.eu wrote: Marius, Im not sure that will work as ctx is a paramater, not a val paramater. class HTTPServletContext(ctx: ServletContext) extends HTTPContext In order to do what you'd suggested wouldnt it need to be: class HTTPServletContext(val ctx: ServletContext) extends HTTPContext Thoughts? Cheers, Tim On Oct 7, 7:50 pm, marius d. marius.dan...@gmail.com wrote: Servlet dependencies are abstracted away by a dedicated layer from the rest of Lift. LiftRules.context match { case c: HTTPServletContext = c.ctx // this is a ServletContext case _ = } So you can take the ServletContext and do your stuff with it. But in this case you explicitly know that you are running Lift in a JEE web container. This abstraction is necessary to us in order to be able to run lift apps in other no JEE containers (Netty, AsyncWeb, Portlets etc). Br's, Marius On Oct 7, 8:40 pm, rintcius rintc...@gmail.com wrote: Your best bet is to go find some Java static thing that's going to give you the ServletContext Yes that could work, but is it an idea to make the liftServlet available as an object in Lift (when it has the right provider)? Then the servletContext can be obtained nicely via liftServlet.getServletContext() --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Started integrating lift in a scala+spring project. Feedback?
Thanking you kindly good sir - I knew there was something not quite right about that :-) Cheers, Tim On Oct 8, 12:15 pm, marius d. marius.dan...@gmail.com wrote: You are correct. I need to make this adjustment today. Thanks for pointing this out Tim. Br's, Marius On Oct 8, 2:05 pm, Timothy Perrett timo...@getintheloop.eu wrote: Marius, Im not sure that will work as ctx is a paramater, not a val paramater. class HTTPServletContext(ctx: ServletContext) extends HTTPContext In order to do what you'd suggested wouldnt it need to be: class HTTPServletContext(val ctx: ServletContext) extends HTTPContext Thoughts? Cheers, Tim On Oct 7, 7:50 pm, marius d. marius.dan...@gmail.com wrote: Servlet dependencies are abstracted away by a dedicated layer from the rest of Lift. LiftRules.context match { case c: HTTPServletContext = c.ctx // this is a ServletContext case _ = } So you can take the ServletContext and do your stuff with it. But in this case you explicitly know that you are running Lift in a JEE web container. This abstraction is necessary to us in order to be able to run lift apps in other no JEE containers (Netty, AsyncWeb, Portlets etc). Br's, Marius On Oct 7, 8:40 pm, rintcius rintc...@gmail.com wrote: Your best bet is to go find some Java static thing that's going to give you the ServletContext Yes that could work, but is it an idea to make the liftServlet available as an object in Lift (when it has the right provider)? Then the servletContext can be obtained nicely via liftServlet.getServletContext() --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Started integrating lift in a scala+spring project. Feedback?
I just committed it. Br's, Marius On Oct 8, 2:25 pm, Timothy Perrett timo...@getintheloop.eu wrote: Thanking you kindly good sir - I knew there was something not quite right about that :-) Cheers, Tim On Oct 8, 12:15 pm, marius d. marius.dan...@gmail.com wrote: You are correct. I need to make this adjustment today. Thanks for pointing this out Tim. Br's, Marius On Oct 8, 2:05 pm, Timothy Perrett timo...@getintheloop.eu wrote: Marius, Im not sure that will work as ctx is a paramater, not a val paramater. class HTTPServletContext(ctx: ServletContext) extends HTTPContext In order to do what you'd suggested wouldnt it need to be: class HTTPServletContext(val ctx: ServletContext) extends HTTPContext Thoughts? Cheers, Tim On Oct 7, 7:50 pm, marius d. marius.dan...@gmail.com wrote: Servlet dependencies are abstracted away by a dedicated layer from the rest of Lift. LiftRules.context match { case c: HTTPServletContext = c.ctx // this is a ServletContext case _ = } So you can take the ServletContext and do your stuff with it. But in this case you explicitly know that you are running Lift in a JEE web container. This abstraction is necessary to us in order to be able to run lift apps in other no JEE containers (Netty, AsyncWeb, Portlets etc). Br's, Marius On Oct 7, 8:40 pm, rintcius rintc...@gmail.com wrote: Your best bet is to go find some Java static thing that's going to give you the ServletContext Yes that could work, but is it an idea to make the liftServlet available as an object in Lift (when it has the right provider)? Then the servletContext can be obtained nicely via liftServlet.getServletContext() --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Started integrating lift in a scala+spring project. Feedback?
Yes, but I am referring to the case when there is no Full(session). I.e. how do I get the servlet context in the 2nd case at the place where I am currently throwing a RTE. def servletContext = { S.servletSession match { case Full(session) = session.getServletContext() case _ = throw new RuntimeException(no session) } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Started integrating lift in a scala+spring project. Feedback?
In Lift 1.1, there is no S.servletSession method. Without a session, you cannot find the context and even with a session, you have to look to see if the session is associated with a particular provider (Lift-speak for the thing that's forwarding requests to Lift). Your best bet is to go find some Java static thing that's going to give you the ServletContext On Wed, Oct 7, 2009 at 1:12 AM, rintcius rintc...@gmail.com wrote: Yes, but I am referring to the case when there is no Full(session). I.e. how do I get the servlet context in the 2nd case at the place where I am currently throwing a RTE. def servletContext = { S.servletSession match { case Full(session) = session.getServletContext() case _ = throw new RuntimeException(no session) } } -- 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 liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Started integrating lift in a scala+spring project. Feedback?
Your best bet is to go find some Java static thing that's going to give you the ServletContext Yes that could work, but is it an idea to make the liftServlet available as an object in Lift (when it has the right provider)? Then the servletContext can be obtained nicely via liftServlet.getServletContext() --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Started integrating lift in a scala+spring project. Feedback?
My interpretation of DPP's last post was that he [or moreover, we the team] would not want the context accessible in a sessionless way. Cheers, Tim On 7 Oct 2009, at 18:40, rintcius wrote: Your best bet is to go find some Java static thing that's going to give you the ServletContext Yes that could work, but is it an idea to make the liftServlet available as an object in Lift (when it has the right provider)? Then the servletContext can be obtained nicely via liftServlet.getServletContext() --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Started integrating lift in a scala+spring project. Feedback?
On Wed, Oct 7, 2009 at 10:40 AM, rintcius rintc...@gmail.com wrote: Your best bet is to go find some Java static thing that's going to give you the ServletContext Yes that could work, but is it an idea to make the liftServlet available as an object in Lift (when it has the right provider)? That's not going to happen. We're moving away from globals/statics/singletons and to things being session-specific. Then the servletContext can be obtained nicely via liftServlet.getServletContext() -- 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 liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Started integrating lift in a scala+spring project. Feedback?
Servlet dependencies are abstracted away by a dedicated layer from the rest of Lift. LiftRules.context match { case c: HTTPServletContext = c.ctx // this is a ServletContext case _ = } So you can take the ServletContext and do your stuff with it. But in this case you explicitly know that you are running Lift in a JEE web container. This abstraction is necessary to us in order to be able to run lift apps in other no JEE containers (Netty, AsyncWeb, Portlets etc). Br's, Marius On Oct 7, 8:40 pm, rintcius rintc...@gmail.com wrote: Your best bet is to go find some Java static thing that's going to give you the ServletContext Yes that could work, but is it an idea to make the liftServlet available as an object in Lift (when it has the right provider)? Then the servletContext can be obtained nicely via liftServlet.getServletContext() --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Started integrating lift in a scala+spring project. Feedback?
Thanks Marius, that was what I was looking for! So in 1.0.2 I can call: def servletContext = LiftRules.context And when I upgrade to 1.1. I will change that into your suggestion. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Started integrating lift in a scala+spring project. Feedback?
Marius, Out of interest, have you physically ran lift in asyncweb or netty? Just thinking about the embedding possibilities... Cheers, Tim Sent from my iPhone On 7 Oct 2009, at 19:50, marius d. marius.dan...@gmail.com wrote: Servlet dependencies are abstracted away by a dedicated layer from the rest of Lift. LiftRules.context match { case c: HTTPServletContext = c.ctx // this is a ServletContext case _ = } So you can take the ServletContext and do your stuff with it. But in this case you explicitly know that you are running Lift in a JEE web container. This abstraction is necessary to us in order to be able to run lift apps in other no JEE containers (Netty, AsyncWeb, Portlets etc). Br's, Marius On Oct 7, 8:40 pm, rintcius rintc...@gmail.com wrote: Your best bet is to go find some Java static thing that's going to give you the ServletContext Yes that could work, but is it an idea to make the liftServlet available as an object in Lift (when it has the right provider)? Then the servletContext can be obtained nicely via liftServlet.getServletContext() --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Started integrating lift in a scala+spring project. Feedback?
On Sat, Oct 3, 2009 at 2:56 AM, rintcius rintc...@gmail.com 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 liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Started integrating lift in a scala+spring project. Feedback?
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? Rintcius --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Started integrating lift in a scala+spring project. Feedback?
You called the correct method, but you cannot assume that the method will always return a Full Box. There is not always a guaranteed context. On Thu, Oct 1, 2009 at 2:59 PM, rintcius rintc...@gmail.com wrote: Hmm, isn't there a direct way to get the ServletContext? I mean now that I think about it looks to me that it should be possible to obtain the ServletContext no matter if there's a session or not. -- 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 liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Started integrating lift in a scala+spring project. Feedback?
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..). 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 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Started integrating lift in a scala+spring project. Feedback?
On Fri, Oct 2, 2009 at 7:00 AM, rintcius rintc...@gmail.com 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 liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Started integrating lift in a scala+spring project. Feedback?
Ok hopefully better phrased: It's quite possible that there is no session, while there is a ServletContext. The context of the request is going to depend on how the current session is instantiated. I don't get that. Quote from http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContext.html : There is one context per web application per Java Virtual Machine. (A web application is a collection of servlets and content installed under a specific subset of the server's URL namespace such as /catalog and possibly installed via a .war file.) So why is it depending on how the current session is instantiated? Rintcius --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Started integrating lift in a scala+spring project. Feedback?
On Fri, Oct 2, 2009 at 9:17 AM, rintcius rintc...@gmail.com wrote: Ok hopefully better phrased: It's quite possible that there is no session, while there is a ServletContext. The context of the request is going to depend on how the current session is instantiated. I don't get that. Quote from http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContext.html : There is one context per web application per Java Virtual Machine. (A web application is a collection of servlets and content installed under a specific subset of the server's URL namespace such as /catalog and possibly installed via a .war file.) So why is it depending on how the current session is instantiated? Because it's possible for a Lift application to serve more than just what's sent in via the Servlet interface. It's possible that a Lift application might be serving stuff via Servlet, Portlet, and some other interface simultaneously. 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 liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Started integrating lift in a scala+spring project. Feedback?
Rintcius, Whilst I applaud the effort, what is your goal with integrating the two frameworks? What problem are you looking to solve? Cheers, Tim On 1 Oct 2009, at 10:14, rintcius wrote: Hi, I have started integrating Lift in a Scala + Spring example project (see http://code.google.com/p/scala-spring). This first integration just has a single template and snippet for now but should give an idea how Lift can be integrated. Before I go further with this I would like some Lift experts to review the code I have written so far. Anybody? The changeset that adds lift integration is in http://code.google.com/p/scala-spring/source/detail?r=18 Thanks, Rintcius --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Started integrating lift in a scala+spring project. Feedback?
A quick look at the code... you use open_! That's considered very bad practice. Any time you use open_!, you are saying I know this thing contains a value. It's like not doing null testing when the method you are calling is expected to return a null under certain circumstance. Put another way, the ! is in the name for a reason. It's dangerous... think before using. On Thu, Oct 1, 2009 at 2:14 AM, rintcius rintc...@gmail.com wrote: Hi, I have started integrating Lift in a Scala + Spring example project (see http://code.google.com/p/scala-spring). This first integration just has a single template and snippet for now but should give an idea how Lift can be integrated. Before I go further with this I would like some Lift experts to review the code I have written so far. Anybody? The changeset that adds lift integration is in http://code.google.com/p/scala-spring/source/detail?r=18 Thanks, 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 liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Started integrating lift in a scala+spring project. Feedback?
Hi Tim, This project is meant as an example for people (like me) that maintain existing Spring architectures and are interested in using Scala and Lift. What I want to do now is port the existing jsp's and spring controllers to lift, so that people can compare jsp and lift-webkit with each other (and probably favor lift :) ). Currently I have just looked at the easiest way to integrate Lift and Spring (that is using the LiftFilter and access Spring's ApplicationContext), but I am also interested in other ways to integrate them (at a later stage). Rintcius --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Started integrating lift in a scala+spring project. Feedback?
Ok thanks David. What is the recommended way to get the ServletContext from a lift snippet (in 1.0.2)? Rintcius --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Started integrating lift in a scala+spring project. Feedback?
On Thu, Oct 1, 2009 at 9:18 AM, rintcius rintc...@gmail.com wrote: Ok thanks David. What is the recommended way to get the ServletContext from a lift snippet (in 1.0.2)? Use the for comprehension to test if a Box is empty or not. See http://blog.lostlake.org/index.php?/archives/50-The-Scala-Option-class-and-how-lift-uses-it.html(for the current purpose, Option and Box have the same purpose) 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 liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Started integrating lift in a scala+spring project. Feedback?
Hmm, isn't there a direct way to get the ServletContext? I mean now that I think about it looks to me that it should be possible to obtain the ServletContext no matter if there's a session or not. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---