Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

j_security_check  RSS feed

 
Billy Vandory
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..

Billy
 
Manish Singh
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congrats for your SCJP
 
Manish Singh
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Learn something about the security constraint tag of web.xml.
You will get what you need
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!