[opencms-dev] Saving a file in web context relative path, but only have an CmsObject

Joe Desbonnet jdesbonnet at gmail.com
Tue Apr 11 16:12:14 CEST 2006


Can't find anything myself -- but the OpenCms API can be a right maze.

hmmm... maybe create your own servlet, start it in web.xml with
<load-on-startup> set to 1 and store webapp context info in a
singleton object. I know... it's not pretty.

Joe.


On 4/11/06, Jorge González <informatico at hotelparadisepark.com> wrote:
> Hi list:
>
> I'm trying to save a file under web context relative path, but i'm doing it
> inside a
>
> public void cmsEvent(CmsEvent ev)
>
> method.
>
> I need to know how to extract the relative web path (on the real filesystem)
> so i can place there a folder structure with my thumbnails.
>
> The final objective is publish the required thumbnais (using jai) for every
> image published under certain vfs paths. I want to create the thumbs once.
>
> Now I'm using the <jakarta image taglib> project, but i can't access
> password protected resources correctly with it, so i've developed a listener
> that checks the images published under certain paths and
> generates via jai the thumbnails. I need now to save these thumbnails at
> publish time.
>
> Any idea ?
>
> Thanks.
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>



More information about the opencms-dev mailing list