This week's book giveaway is in the JDBC and Relational Databases forum.
We're giving away four copies of Murach's MySQL and have Joel Murach on-line!
See this thread for details.
Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

j_security_check

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Congrats for your SCJP
 
Manish Singh
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Learn something about the security constraint tag of web.xml.
You will get what you need
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic