Try LiftRules.loadResourceAsXml Br's, Marius
On Jul 4, 1:11 am, glenn <gl...@exmbly.com> wrote: > I've searched this group and combed through the lift book for an > answer, but found none - how to use file-based storage for data within > Lift. > > For example, how would I call something like: > > def xml = XML.loadFile(<fileName>) > > without getting a java.io.FileNotFoundException? > > I tried storing the files in a directory under webapp, and even > included the directory in the resource path in Boot.scala, like so: > > ResourceServer.allow({ > case "contents" :: _ => true > > }) > > But that doesn't work. > > Any help would be appreciated. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---