Patrick, this came up while you were gone. Did you have any thoughts on this? In order to be able to do this easily, we'd need to pull the ActionContext initialization out of the ActionInvocation initialization, so you can use one ActionContext for multiple invocations. Matt didn't like the option where you do:
ActionContext myContext = ActionContext.getContext(); ActionInvocation anotherInvocation = new ActionInvocation("someNamespace","anotherAction"); String otherResult = anotherInvocation.invoke(); ActionContext.setContext(myContext); Which would be needed to save the current context, then re-set it after invoking the other action... This is not really pretty, but as I'm thinking about it, it could be a helper method in ActionSupport... Jason > -----Original Message----- > From: Matt Ho [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 17, 2003 12:04 AM > To: [EMAIL PROTECTED] > Subject: [OS-webwork] XWork: calling Actions from Actions > > > In addition to Action chaining, I'd like to add support in > XWork for calling Actions from within Actions. The only > problem I see is the use of ThreadLocal in the > ActionInvocation.init() method. An approach that Jason > Carreira recommended, which I agree with, is to make the call to > ActionContext.setContext() external to ActionInvocation. > > Thoughts? > > -- > Matt Ho > Principal > Indigo Egg, Inc. > http://www.indigoegg.com/ > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork