aspose file tools*
The moose likes Servlets and the fly likes To change password using servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "To change password using servlet" Watch "To change password using servlet" New topic
Author

To change password using servlet

Raghu ram
Ranch Hand

Joined: Oct 19, 2007
Posts: 34
Hello Frnds,

I am doing small project about call management, and similar to customer care. But i stored the data in File(instead of oracle).I created html pages login page, registration page(contains name, phone number..), modify already registered customers page(called that page as change profile page). So the problem is i want to change the password and other data(name, phone number.. etc) can give me idea how to get the data from the file to change the password and other data.

reply me fast.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

If the file is structured, you should be able to lock it, parse it into a datastructure, alter the values, and then re-write the file.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Raghu ram
Ranch Hand

Joined: Oct 19, 2007
Posts: 34
Actually the problem is,

Already i have the data in the file

data.txt

Email-id: abc@yahoo.com
name: abc
password: passwd

Email-id: xxxx
name: xxx
password: xxxx

and so on..

and (this data first stored in map and then by using iterator i stored in file) here email-id is the key. So in servlet its already login to this page. So In this change profile page i want i identify that email-id. So that using that email id i can change the profile of that customer.
Raghu ram
Ranch Hand

Joined: Oct 19, 2007
Posts: 34
Actually the problem is,

Already i have the data in the file

data.txt

Email-id: abc@yahoo.com
name: abc
password: passwd

Email-id: xxxx
name: xxx
password: xxxx

and so on..

and (this data first stored in map and then by using iterator i stored in file) here email-id is the key in the map . Customer already logged into this customerservice page,In customerservice page there is one link called change profile. So In this change profile page i want i identify that email-id. So that using that email id i can change the profile of that customer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: To change password using servlet