get the ServletContext and call getResource() with the path (relative
to the context root) and you get an URL. Or call getResourceAsStream()
with the same argument to get an InputStream.

Geoff

On 9/16/05, Ted Steen <[EMAIL PROTECTED]> wrote:
> I need to load a .properties file from the context directory.
> I have been messing around with the class loaders getResource etc. but
> I can't get it to work.
> I have a POJO that is a part of my tapestry application. And all I
> want to do is get the InputStream for a file in context/
> 
> 
> --
> /ted
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
The Spindle guy.           http://spindle.sf.net
Get help with Spindle:   
http://lists.sourceforge.net/mailman/listinfo/spindle-user
Announcement Feed:    
http://www.jroller.com/rss/glongman?catname=/Announcements
Feature Updates:            http://spindle.sf.net/updates

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to