This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
how to redirect the session from j_security_check(--action) in login page( login page is having 2 radio buttons, eg: dashboard and project)defaultly its redirecting to Dashboard but sme times even i checked project also..its redirecting to dashborad only how to redorect to project screen....
You misunderstand how servlet security works. You would never submit a form to j_security_check directly, you would submit it to wherever it's supposed to go, and the servlet/portal container handles security transparently.
can you please send me code sample for this... redirecting from servlet/jsp to....
Joined: Sep 21, 2011
My point was that there is no code sample - you would code the form as if no security was in place, and then set up web.xml accordingly. You will need to read up on servlet security about how to do that. I'm having a hard time believing that a portal server wouldn't have centralized authentication handling, though.