Re: idea for struts actions
Dan Allen <[email protected]> Fri, 21 Mar 2003 13:23:03 -0600
| Newsgroups | gmane.comp.java.securityfilter.user |
|---|---|
| Message-ID | <[email protected]> |
Dan Allen ([email protected]) wrote: > > Now you can use the struts tags to make the login form and you can > > execute an action. > > Crap, this won't work since you are saving the page where the user > came from and if it is not the loginPage then you take them to it, > skipping the path to the /Login action that is requested in the > configuration file. Found a way around it, have the default form page be an action to, move the SAVED_REQUEST_URL to another session variable that security filter doesn't know about, do the login and then redirect the user using that saved request. All I am doing is allowing an Action to do stuff after security filter is done, so as to clean up a prepare for the user's session. If this was not the intent of securityfilter, that doesn't really bother me since this works for what I need. I want to be able to put more information in the user session when they login and this is working for me. Dan -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Daniel Allen, <[email protected]> http://www.mojavelinux.com/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "If you still don't like it, that's ok: that's why I'm boss. I simply know better than you do." -- Linus Torvalds - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en