[opencms-dev] current folder in widget

Wiesner, Daniel daniel.wiesner at av-studio.de
Thu May 5 19:15:56 CEST 2005


marec,

try this:

String uri = cms.getRequestContext().getUri();
String folderName = CmsResource.getFolderPath(uri);

regards
Daniel



Marek schrieb:

> no, no, no
>
> cms.getRequestContext().getUri() returns 
> /system/workplace/editors/xmlcontent/editor_form.jsp
>
> I solved the problem by adding parameters of reqest from 
> HttpServletReqest to CmsRequestContext
>
> Regards,
> Marek
>
>
> ----- Original Message ----- From: "Thomas Maerz" <thomasmaerz at gmx.de>
> To: "The OpenCms mailing list" <opencms-dev at opencms.org>
> Sent: Thursday, May 05, 2005 4:32 PM
> Subject: Re: [opencms-dev] current folder in widget
>
>
>> "Marek" <mareknow-pbc at o2.pl> writes:
>>
>>> access to CmsObject and cms.getRequestContext() but it is not what can
>>
>>
>> Returns the OpenCms VFS URI of the requested resource:
>> cms.getRequestContext().getUri()
>>
>> ,----[ org.opencms.file.CmsRequestContext ]
>> |     /**
>> |      * Returns the OpenCms VFS URI of the requested resource.<p>
>> |      *
>> |      * @return the OpenCms VFS URI of the requested resource
>> |      */
>> |     public String getUri() {
>> `----
>>
>>
>> Regards,
>> Thomas
>>
>>
>>
>> _______________________________________________
>> This mail is send to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please 
>> visit
>> http://mail.opencms.org/mailman/listinfo/opencms-dev
>>
>
>
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please 
> visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list