Hi Rob,
That code looks sane to me in principle. Just a thought, are you supplying
the real full filesystem path to
LocalReference.createFileReference("/path_to/imgdir/")?
Using paths relative to your webapp root won't work ...
You probably don't actually need the trailing slash in
component.getDefaultHost().attach("/images/", d), but I don't really think
it will hurt either.
Anything interesting in the log (where it's looking for the file, etc.)?
- Other Rob
On Thu, Mar 6, 2008 at 6:07 PM, Robert Bruggner <[EMAIL PROTECTED]>
wrote:
> Hi All,
> I'm having a little trouble getting my restlet application to serve static
> files
> (files and directories) when deploying via Tomcat and was wondering if
> anyone had any suggestions (I'm a bit of a newbie too - please bear with
> me).
>