Nov 8th, 2012, 04:56 PM
Redirect back to previous page after sucessful login.
I have a form that checks if user is "authenticated" when submit button is clicked. If not, they are redirected to the signin page (spring security). When user has been authenticated they are redirected to main page.
At this point the form data will be submitted automatically along with a message confirm submission.
I imagine this will involve a session variable. Whats is the best approach?
Last edited by Laedislaw; Nov 8th, 2012 at 05:02 PM.
Nov 8th, 2012, 05:00 PM
Stupid question -- why not use Spring Security to do your bidding.. I believe it handles this sort of thing w/o issue.. It's on my list of things to implement..
Nov 8th, 2012, 05:29 PM
If you refering to "always-use-default-target" option in security.xml then it does not seem to work on unprotected resources.
Originally Posted by webappRound3
Nov 8th, 2012, 05:45 PM
ok.. Just a thought since I didn't notice that you mentioned you were using Spring Security (but now noticed that mention)...
Tags for this Thread