[opencms-dev] Get CmsJspActionElement

Michael Emmerich m.emmerich at alkacon.com
Thu Jun 16 12:38:27 CEST 2011


> I need get the CmsJspActionElement from a function.
> In this function i have access only to the CmsObject,
> I_CmsXmlContentValue and CmsXmlContentErrorHandler.
> Is there some way from those objects, to get the CmsJspActionElement?

To get a CmsJspActionElement , you need the pagecontetxt, request and 
response, therefore you only get it in a JSP.

But why do you need it? The CmsJspActionElement  is ment to give you

1) Access to the CmsObject
2) Access to the RequestContext
3) Access to methods similar to the taglib (include, like, etc)

You already have a CmsObject, so, there is no need for 1 and 2.
All methos from 3) only make sense if you are in a JSP - and if you are 
in a JSP you can get the CmsJspActionElement  ....

Kind Regards,

Michael Emmerich

Alkacon Software GmbH  - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org

More information about the opencms-dev mailing list