Re: HOWTO Invoke an action

Philip Luppens <[email protected]>
Newsgroups gmane.comp.java.open-symphony.webwork
Message-ID <27455974.1147260750206.JavaMail.os-j2ee@opensymphony01.managed.contegix.com>
There you have it .. right now, there's no 'easy' way to do a redirect from inside an interceptor (afaik) which doesn't involve 'a little help' from your action.

If you have an action that requires authentication, you should return Action.LOGIN, and do map a global result login to 'login.action?redirect=/my/return/url. Make sure you have a similar named setter setRedirect() in your login action. You execute the login action, and use an ognl expression (${redirect}) to query your getRedirect() in your login action to redirect after successful execution. That's a possible approach.

I prefer my current approach (invoking the login action before the actual action if certain parameters are present) since it's completely invisible.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=28679&messageID=58598#58598

---------------------------------------------------------------------
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.