I've been tinkering with j_security_check this week and I have it working and am happy about that.
What I'm trying to do now is have a login dialog on the top of every page on my site, and the user can login when he chooses. When the user is successfully authenticated/authorized, the only difference that will be apparent to the user is an extra tab on the web pages that allow the user to link to the account page. I have thought of putting the account page in a protected realm, but I don't want to show a link to the protected resource anywhere. I just want the logon dialog to appear. Kind of like a programmatic j_security_check on demand.
Implementing this behaviour is seems a little tough and not sure if j_security_check is the right candidate.
Can anyone give me an idea as to a "pattern" I can use for this? I want to stay away from third party frameworks for now as this is just a learning exersize for me.
Thank you kind Ranchers,
(Btw, I just passed my SCJP with 90%! (failed first time - did not study, thought I knew it all. Eye opener.) All in all I ended up writing 2200 snippetts of code, and took 157 pages of notes studying 12 hrs a day for 2 months) Pardon the shameless self promotion..