> Hi all, > I was wondering how I could possibly solve this: I have an action in which > I construct quite a complex data structure. From that data structure I > display > some tables and create some charts. Now, I have got this one big-ass java > class - extending ActionSupport, in which I do all the stuff - create data > and > have functions for painting charts in temporary files. [...] > Now, the thing is, I would like to separate the code for painting the charts > in > a different > file, and do something like this: > <s:iterator value="%{getChartsData(top)}"> > <s:action namespace="charts" name="ErrorStat" > executeResult="true"/> > <%-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ --%> > </s:iterator> > But I need to pass current "top" to the action (or set a property in this > action) but I > have no idea how. I gather that I should be able to get to the "top" in my > java > class
So I've finally found out how it can be done. Through action context I can get value stack and find any possible value being already there. ActionContext.getContext().getValueStack().findValue("valuename"); Not exactly nice as the parameter is not pushed to the action by the caller but the action must dig on the value stack for it, but at least it works... Petr --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]