Re: HOWTO Invoke an action

jactor <[email protected]>
Newsgroups gmane.comp.java.open-symphony.webwork
Message-ID <25978500.1147256747061.JavaMail.os-j2ee@opensymphony01.managed.contegix.com>
Hi!

I'm back on this one... Because of another error, this was not tested, and it don't work...

If the action requires a login, this code is executed:
[code]
            ActionContext.getContext().put(
                GlobalConstant.FORWARD_ACTION.toString(), action);
[/code]

In the login.action, this code is executed:
[code]
                        String forward = (..); // get forward from session

                        if (forward != null) {
                            LOG.debug("Forward: " + forward);
                            LOG.debug("ActionContext: "
                                + ActionContext.getContext().get(
                                    GlobalConstant.FORWARD_ACTION.toString()));

                            return GlobalConstant.FORWARD_ACTION.toString();
                        }
[/code]

In my xwork.xml
[code]
			<result name="forwardAction" type="redirect">${forwardAction}</result>
[/code]

The logging from my login.action is stated here and shows that forward from 
[code]
... Forward: the.action
... ActionContext: null
[/code]

Because the context is null, I am redirected to the context root. What might be wrong?
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=28679&messageID=58580#58580

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.