Ok, found a solution to my own problem:
...
moduleConfigImpl = (ModuleConfigImpl)mapping.getModuleConfig();
if (moduleConfigImpl != null)
{
actionConfigs = moduleConfigImpl.findActionConfigs();
if (actionConfigs != null)
{
for (ActionConfig actionConfig
My problem is that I don't know the path for the second action, but I
do know the "forward to second page".
I'm trying to implement a custom workflow engine where states are
mapped to the definitions. This way I don't hardcode the
form action in JSP but rather derive it from the state name.
On 8
See, local forward definition (just as I described) does not work. If I call
mapping.findForwardConfigs() from inside of my FirstAction.execute()
method, I get only locally defined forwards, e.g. "forward to first
page". I would like to have a way to get to the SecondPage action
mapping from insid
I think you'd have to know the path for the second action (/SecondPage
in this case)...
mapping.getModuleConfig().findAcrionConfig("/secondPage").findForwardConfig("forward
to second page");
Caveat: I haven't tried this. :)
There is also a findForwardConfigs() method of ModuleConfig, so I
s
Martin Bunen wrote:
Assuming I'm currently inside of com.mypkg.FirstAction.execute() method.
How can I obtain ActionConfig from the "forward to second page"
forward definition?
What I mean is that I know the forward name for the SecondPage action
mapping. I need to get to the path "/SecondPage"
Hi.
Assume I have the following in my struts-config.xml:
...
Assuming I'm currently inside of com.mypkg.FirstAction.execute() method.
How can I obtain ActionConfig from the "forward to second page"
forward definition?
What I mean is that I know the forward name for the
6 matches
Mail list logo