[opencms-dev] Resource properties

Eke, Kemi Kemi.Eke at community-fund.org.uk
Tue Nov 11 11:51:01 CET 2003


Hello Everyone, 

Just a quickie, is there any way of accessing the properties of a resource
(as normally described by cms.getProperty(String) where cms is an instance
of CmsJspActionElement) without creating a CmsJspActionElement?  I'm writing
a class that implements the I_CmsCronTab interface in which one accesses
CmsResources objects in a folder via 

cmsObject.getResourcesInFolder(pathCurrentPic)

This returns a vector of resources but afterwards I wish to get to the
properties associated with the resources. In a JSP this is easy as one can
create an instance of CmsJspActionElement,  and then associate each resource
with a Map object of properties from cms.properties(uri of resource) but
without pageContext, response and request objects available in the case of a
class, how does one go about this?

Any help gratefully received

Kemi

Information contained in this email plus any attachment is intended for
the use of the addressee only and is confidential, proprietary and may
be privileged. Any dissemination, distribution, copying or use of this
communication without the prior permission of the sender is prohibited.
If you are not the intended recipient you must not copy this message or
attachment or disclose the contents to any other person, but are
requested to telephone or email the sender and delete the message and
any attachment from your system. The contents of this message will not
be in any way binding upon the Community Fund. Opinions, conclusions,
contractual obligations and other information in this message, in so far
as they relate to the official business of the Community Fund, must be
specifically confirmed in writing by the Community Fund.
___________________________________________________________________
This e-mail has been scanned for viruses by MCI's Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com



More information about the opencms-dev mailing list