> From: Lyallex [mailto:[email protected]]
> Subject: Re: Dynamic Resources: getRealPath() returns the 'wrong' path
>
> Works perfectly ... except I just cannot get he DefaultServlet to
> serve any images that are written to any directory anywhere on the
> filesystem after the server has started ...
Try this: create a conf/Catalina/[host]/imagecache.xml file containing a
<Context> element with a docBase attribute that points to the cache file
("C:/blackhole/magecache"). Construct your image URLs like this:
http://domain.com/imagecache/[imageName].jpg (or whatever for the name and
type).
This should let the DefaultServlet run under this secondary webapp and access
the files you place there.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]