Re: obtain action path from a forward definition

2005-08-24 Thread Martin Bunen
Ok, found a solution to my own problem: ... moduleConfigImpl = (ModuleConfigImpl)mapping.getModuleConfig(); if (moduleConfigImpl != null) { actionConfigs = moduleConfigImpl.findActionConfigs(); if (actionConfigs != null) { for (ActionConfig actionConfig

Re: obtain action path from a forward definition

2005-08-15 Thread Martin Bunen
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

Re: obtain action path from a forward definition

2005-08-15 Thread Martin Bunen
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

Re: obtain action path from a forward definition

2005-08-15 Thread Frank W. Zammetti
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

Re: obtain action path from a forward definition

2005-08-15 Thread Dave Newton
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"

obtain action path from a forward definition

2005-08-15 Thread Martin Bunen
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