On Sat, 23 May 2009 14:44:27 -0700
Chris Cheshire <[email protected]> wrote:

> I have quite a few convenience methods in my action bean context
> subclass (eg. that wrap getting init parameters for the web
> application) that I want to access from a tag handler class. I can get
> the servlet context and then get the params from that, but the methods
> in the action bean context are more...convenient. Is there any way to
> get access to this instance from a tag handler class?

I think that a common way to do this is to either subclass the context
class such that the instances put themselves in a ThreadLocal and
provide a public static access method, or to have an interceptor
do that for the stock class.

-- 
--
Mike McNally <[email protected]>

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to