Re: Interceptor order

2010-05-20 Thread Andy Law
Cheers Chris, Chris Pratt wrote: > > You may want to think about using: > > invocation.getStack().getContext().put(MAGIC_KEY,getStuff()); > > instead of: > > invocation.getStack().set(MAGIC_KEY,getStuff()); > > For the sake of argument, I'm going to assume that MAGIC_KEY is set to the > Str

Re: Interceptor order

2010-05-20 Thread Chris Pratt
You may want to think about using: invocation.getStack().getContext().put(MAGIC_KEY,getStuff()); instead of: invocation.getStack().set(MAGIC_KEY,getStuff()); For the sake of argument, I'm going to assume that MAGIC_KEY is set to the String "magic". The first example above makes #magic availabl

Re: Interceptor order

2010-05-20 Thread Andy Law
RogerV wrote: > > > > Andy Law wrote: >> >> The pertinent code in the interceptor is reproduced below. It does what I >> expect it to do insofar as it sticks my "Stuff" object in a place that >> the JSP can retrieve it using the MAGIC_KEY string. However, if I >> configure my interceptor stac

Re: Interceptor order

2010-05-19 Thread RogerV
Andy Law wrote: > > Following on from my previous question > (http://old.nabble.com/Some-Spring-Struts-questions-td28533505.html) about > injecting objects orthogonal to actions into the environment where jsps > can "see" them, I now have an interceptor that does what I want it do > (Yay! - tha