Package org.opencms.jsp.util
Class CmsJspResourceLoadBean
java.lang.Object
org.opencms.jsp.util.CmsJspResourceLoadBean
Allows JSP access to the results of a <cms:resourceload ... > operation using the JSTL and EL.
- Since:
- 8.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected CmsObject
The OpenCms context of the current user.protected List<CmsResource>
The list of results of the resource loader. -
Constructor Summary
ConstructorDescriptionNo argument constructor, required for a JavaBean.CmsJspResourceLoadBean
(CmsObject cms, List<CmsResource> resources) Creates a new context bean using the OpenCms context of the current user. -
Method Summary
Modifier and TypeMethodDescriptionReturns the OpenCms user context this bean was initialized with.Returns a list ofCmsResource
instances.void
init
(CmsObject cms, List<CmsResource> resources) Initialize this instance.
-
Field Details
-
m_cms
The OpenCms context of the current user. -
m_resources
The list of results of the resource loader.
-
-
Constructor Details
-
CmsJspResourceLoadBean
public CmsJspResourceLoadBean()No argument constructor, required for a JavaBean.You must call
init(CmsObject, List)
and provide the required values when you use this constructor.- See Also:
-
CmsJspResourceLoadBean
Creates a new context bean using the OpenCms context of the current user.The current request context locale is used.
- Parameters:
cms
- the OpenCms context of the current userresources
- the resources to access, must contain objects of typeCmsResource
-
-
Method Details
-
getCmsObject
Returns the OpenCms user context this bean was initialized with.- Returns:
- the OpenCms user context this bean was initialized with
-
getResources
Returns a list ofCmsResource
instances.- Returns:
- a list of
CmsResource
instances
-
init
Initialize this instance.- Parameters:
cms
- the OpenCms context of the current userresources
- the resources to access, must contain objects of typeCmsResource
-