On Wednesday, May 18, 2011, Jerry Yuan wrote:
> Any suggestions about placing it somewhere other than stack?

Relying on stack position will always create risk, as you assume
nothing else will ever modify the stack, and there is little
communication to other layers or interceptors that the information
exists anywhere. I can thing of a bunch of alternatives, but setting
the info on actions implementing an interface is one, attaching it to
the request is another, putting it int the context as a named variable
is another (beware accidentally overwriting it, or something /else/
overwriting it), etc.

> Also if we place it on the stack, hopefully new Struts versions could support 
> it like what we use for Struts 2.2.1.

You'll remain at the mercy of every other interceptor you ever use,
framework changes, and so on.

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org

Reply via email to