I need to put an interceptor after the cookie interceptor that will send
the user to a preference page if a preference cookie is missing rather
than let the desired action fire--like a guard condition. If I was using
a Filter I would just do a redirect.
Eventually I will also add a Flash shared
Could you use a global-result?
http://struts.apache.org/2.x/docs/result-configuration.html#ResultConfiguration-GlobalResults
I would just think up a unique name for the set of conditions that
should cause the redirect. Then, configure that string as a
global-result and write your interceptor to
-circuit the processing and just return a
String return code.
-Original Message-
From: Wes Wannemacher [mailto:w...@wantii.com]
Sent: Monday, June 08, 2009 9:14 AM
To: Struts Users Mailing List
Subject: Re: Interceptor - Conditional Redirect to alternate action
Could you use a global-result
3 matches
Mail list logo