[opencms-dev] Get CmsJspActionElement (Michael Emmerich)

Alejandro GarcĂ­a Gil alejandro.garcia.gil at gmail.com
Fri Jun 17 13:16:01 CEST 2011


I need access to the CmsJspActionElement because i need access to
HttpServletRequest, HttpServletResponse and PageContext.

To access these objects I need the CmsJspActionElement ...


Alejandro,

> 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  ....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20110617/33aec594/attachment.htm>


More information about the opencms-dev mailing list