This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

LOGIN -authentication

 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

in my project i want authenticate login user..

how can i do it..pls help me ..

thanks
warm regards,
seetharaman
 
Alaa Nassef
Ranch Hand
Posts: 471
Hibernate Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, this has nothing to do with struts itself. Well, the basic thing to do is to have a form with a username and password fields, and it submits to an action that authenticates the user. The action authenticates the user by comparing the username and password with those in database or LDAP, preferably with encryption. Of course a lot of other things can be done, like using JAAS, ACEGI, using a central authenticating server like CAS.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The http://faq.javaranch.com/java/TomcatFaq has a section on web app security. While some of it (the stuff about setting up realms) is Tomcat-specific, most of it applies to all web apps (and other servers have mechanisms similar to realms).

I'll move this to the servlet forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic