[Lift] Re: Get the subfolders and all the files in the Directory in the Lift ?

2009-10-30 Thread Neil.Lv
bob, Thank you very much, i will be try it. :) Cheers, Neil On Oct 31, 2:03 am, bob wrote: > when moved the file from /resources/foo.xml to /foo.xml  (in the same > path as index.html), it now finds it. i guess getResourcePaths() and > getResourceAsStream() don't necessarily look in the s

[Lift] Re: Get the subfolders and all the files in the Directory in the Lift ?

2009-10-30 Thread bob
when moved the file from /resources/foo.xml to /foo.xml (in the same path as index.html), it now finds it. i guess getResourcePaths() and getResourceAsStream() don't necessarily look in the same place. On Oct 30, 1:58 pm, bob wrote: > i had call to do something similar, and here's the code. i'm

[Lift] Re: Get the subfolders and all the files in the Directory in the Lift ?

2009-10-30 Thread bob
i had call to do something similar, and here's the code. i'm sure someone smarter could replace the for comprehension with filter().map () def getPaths(prefix : String) : Set[String] = { // Resource Paths as an Array[Object] var jpaths = S.servletSession.open_!.getServletContext.getReso

[Lift] Re: Get the subfolders and all the files in the Directory in the Lift ?

2009-10-29 Thread Neil.Lv
Thank you very much ! I will be try it. Cheers, Neil On Oct 29, 11:50 am, David Pollak wrote: > The best you can hope for is to try to access the > ServletContext:http://tomcat.apache.org/tomcat-5.5-doc/servletapi/index.html > > Specifically, the getResourcePaths > call:http://tomcat.a

[Lift] Re: Get the subfolders and all the files in the Directory in the Lift ?

2009-10-28 Thread David Pollak
The best you can hope for is to try to access the ServletContext: http://tomcat.apache.org/tomcat-5.5-doc/servletapi/index.html Specifically, the getResourcePaths call: http://tomcat.apache.org/tomcat-5.5-doc/servletapi/javax/servlet/ServletContext.html#getResourcePaths%28java.lang.String%29 On