Win a copy of Head First Android this week in the Android 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

To change password using servlet

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Raghu ram
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic