You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by shymon <sh...@poczta.onet.pl> on 2008/11/25 13:02:16 UTC
Path to files in WEB-INF?
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Path to files in WEB-INF?
Posted by Howard Lewis Ship <hl...@gmail.com>.
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 <sh...@poczta.onet.pl> 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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Howard M. Lewis Ship
Creator Apache Tapestry and Apache HiveMind
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org