[opencms-dev] (6) (OT) Getting CmsJspActionElement from struts action

Joachim Arrasz info at arrasz.de
Tue Jul 5 11:12:46 CEST 2005


Jorge González wrote:
> Hi list,
> this is a little off topic, but i supose every struts user must face it
> sooner or later...
>  
> I need a reference to CmsJspActionElement or CmsJspBean from within an
> action, but i don't know where can i get the pageContext reference.

you have no pageContext available .. you have to create one for yourself
via the servletContext. The PageContext is only available in JSPs

hth

Achim

-- 
Dipl. Inf.(FH) Joachim Arrasz - joachim.arrasz at synyx.de
www.synyx.de Opensource Solutions - OpenCMS Solution Provider
irc.synyx.de/6667 #opencms   http://irc.synyx.de
http://www.opencms-forum.de
76135 Karlsruhe



More information about the opencms-dev mailing list