This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Login/Registration Process  RSS feed

 
Rashid Ali
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on a website, they want to provide login, registeration, and mailing back to user info on different offers which he checks at the time of registeration.
Can anybody suggest me any artical or resource which provide me guidelines that how can it be done.
Thanks in advance.
Kind regards
Rashid Ali
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends on the App server you are using, but there is an article at JavaWorld on Form based authentication using Tomcat.
 
Shawn Bayern
Author
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you decide you want to handle authentication within the JSP/servlet application instead of the servlet container, my book "JSTL in Action" provides examples for how to do this.
 
Rashid Ali
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much to both of you for your valuable feedback.
I will go through with your suggestions and will return back to you.
Thanks again.
Kind regards
Rashid Ali
[ August 15, 2002: Message edited by: Rashid Ali ]
 
Garrett Smith
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I've been playing around with a similar web-app-component of my own.
For the mail:
JavaMail and JAF
JGuru has a pretty good tutorial on JavaMail and JAF. Do that to get a feel for it. JavaMail is really pretty easy. The authors of that API did an excellent job.

For the login:
java.sql
For the connection pool, you can use Apache Turbine, or you can write your own.
You can do all the database config in a .properties file and read the properties in an initialization file.
Write out little programs to add a user, email a confirmation, create a login.
I usually add a main so I can test out each component. I have been told that JUnit is far superior to my approach, so you should look into that.
 
Rashid Ali
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank Garrett Smith very much for the great information in detail.
This is what i have been looking for.
I will apply your suggestion and will aware myself with the api's you mentioned and wet my hands with by applying them practically.
Thanks again for exchanging that precious info.
kind regards
Rashid Ali
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!