Jason Carreira wrote:
Ok, so this is a follow-up to the ThreadLocal discussion this morning.
So during the ActionInvocation.invoke call, if there are no more
Interceptors, it should set the ActionContext into the ThreadLocal?
That's what I was thinking.
The context is set by the dispatcher: * Set context * Create action * Invoke action (which may invoke other actions)
The problem is during the ActionInvocation stack. How do the
Interceptors interact with the parameters, the session, and the
application map?
See above. No problemo.
I was creating a new ActionContext object and passingIMO the context should not be a part of the request. The ActionInvocation corresponds to the ServletRequest (in servlet lingo), and the context corresponds to the ServletContext (in servlet lingo).
that as part of the ActionInvocation (replacing the Map context in there
now),
but the problem is that the getters and setters for Session, etc are static, so getting the Session and setting something into it doesn't work if the current instance is not set into the ThreadLocal. On the other hand, if those setters are made non-static, then in the Action, you'll have to do: ActionContext.getContext().getSession() instead of ActionContext.getSession().
See above. ActionContext.getSession() should be fine.
This is the path I started down when I decided I would open it up to theAs above. Don't try to mix everything together into pure request stuff. The ActionInvocation is one thing, the context is different. There are *some* stuff that is "in between", but not much.
floor and schedule the meeting.
Any thoughts?
/Rickard
--
Rickard Öberg
[EMAIL PROTECTED]
Senselogic
Got blog? I do. http://dreambean.com
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork