Well, inside a component you can inject the file as an Asset: @Inject @Path("context:WEB-INF/myfile.xml") private Asset myFile;
>From the asset you can get the Resource and from that, an input stream or URL. You can also inject (into a component or service) the Context. On Tue, Nov 25, 2008 at 4:02 AM, shymon <[EMAIL PROTECTED]> wrote: > > > I have a file placed in WEB-INF folder - file which I want to be deployed > with application. > I also want to load that file in page code. How can I obtain path to that > file? > -- > View this message in context: > http://www.nabble.com/Path-to-files-in-WEB-INF--tp20679893p20679893.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]