Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Passwords problem

 
Cathleen Meneses
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!
im making a chat application :-) it has a log in page (asks for username and password). it also has a "forgot password" button that can send the username and password of the user to his email address(user inputs his email address with respect to the email address in his user profile). any suggestions on how i can do this?
my usernamne, password, and email address is stored in a database :-) many thanks!
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Christleene,

Welcome to Javaranch!

As you know this is a great community in which to learn Java and we don't have too many rules around here, but we do have a Naming Policy. Please read this policy and adjust your display name accordingly.

You can change your display name here.

Thanks.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what part of your problem do you not know how to do? If it is mearly sending the user thier password, typically this would be done via Email. You can use the JavaMail API for this.

If you need to know how to access a database from Java you should look at the JDBC Tutorial from Sun.

If you don't understand something else, you might be a little more specific with your question. By that I mean, is this a Desktop App or a Web App? Are you getting specific errors when compiling or running your code? If so, show us the code in question.
[ May 16, 2004: Message edited by: Gregg Bolinger ]
 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try to explain your question and also post any code if there is any problem in your code.
 
Cathleen Meneses
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi gregg!
thanks for telling me about the naming policy, i didn't know about that ^_^ thanks for telling me! :-) thanks also for the java mail API! it was a big help! im really new to java and this is my first project and i am really lost ^_^ and this is one of the missing piece to my project ^_^
many thanks!
 
Cathleen Meneses
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actually, my problem is how do i send the password and username thru email. thanks gregg for helping me out on this ^_^
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Cathleen"-
Thanks for trying to adjust your name to match the naming policy. You *almost* got it right. Your display name should be a first and last name that's not obviously fictitious.

[i]Also, I'm moving this to the Other Java API's forum where they talk about JavaMail a lot.

Try looking at the tutorials provided by Sun's site -- it should show you how to use the API correctly.

Thanks!
- Jess
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!