Re: [appfuse-user] accessing a folder in modular setup

2007-10-24 Thread Michael Horwitz
I take it that by "module" you mean web application (i.e. deployed in a separate .war file)? If so you can use the getServletContext(path).getRealPath() methods to get what you want. Mike. On 10/23/07, kace <[EMAIL PROTECTED]> wrote: > > > I have the below code which gives me what I want prov

Re: [appfuse-user] accessing a folder in modular setup

2007-10-23 Thread kace
I have the below code which gives me what I want provided I am accessing the path in the same module. I am looking to access the exact same directory but in another module. My question is what would i replace getServletContext().getRealPath with so it accesses the other module. String file = re

Re: [appfuse-user] accessing a folder in modular setup

2007-10-23 Thread Ron Anderson
How about something like: File sourceDirectory = new File("/path/to/files"); File[] files = sourceDirectory.listFiles(); Hi guys, I have a modular project set up where files are uploaded into the resources folder from the admin module. The web module needs to access the resource folder in th

[appfuse-user] accessing a folder in modular setup

2007-10-23 Thread kace
Hi guys, I have a modular project set up where files are uploaded into the resources folder from the admin module. The web module needs to access the resource folder in the admin module(webapp/resources/images). Is it possible to access a directory in the admin module without going through a d