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 object as a back-up to the
cookie, so I'll need to put a Flash shared object interceptor in the
stack too. The "redirector" interceptor would check the cookie and flash
token values put set by the previous interceptors in the stack. If both
are missing, then a different action needs to fire.

Where can I find an example of an interceptor that conditionally
"redirects" the user to an alternate action? I'm having trouble
picturing how the plumbing would work and I think an example of this
kind would be a big help.

Steve Mitchell
http://www.ByteworksInc.com


------------------------------------------------------------------------------
NOTICE:  This electronic mail message and any attached files are confidential.  
The information is exclusively for the use of the individual or entity intended 
as the recipient.  If you are not the intended recipient, any use, copying, 
printing, reviewing, retention, disclosure, distribution or forwarding of the 
message or any attached file is not authorized and is strictly prohibited.  If 
you have received this electronic mail message in error, please advise the 
sender by reply electronic mail immediately and permanently delete the original 
transmission, any attachments and any copies of this message from your computer 
system. Thank you.

==============================================================================


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to