• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem with validation between database and jsp page

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi everyone,
Please help me out.I have a jsp page where the username and password is validated and in the main page there is a link to change password .the user changes the password and the master table is also updated with the new password so that the user logs in with the new password.The problem is that the new password is been put in upper case,and it is updated in the master table but when i log in using the new password and enter the same in lower case letters, than also it is allowing me to enter into the next page.this should not happen.that means it is not validating properly with the database or else it is not checking for case-sensitive.
please suggest me with a solution.
thanks in advance.
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

that means it is not validating properly with the database or else it is not checking for case-sensitive.


First you need to isolate the exact problem and decide among the two.
What happens if the password is incorrect ?
And which method are you using to compare the passwords?
The equals() method of string class is by default case sensitive.

Anyways I dont think this is a true JSP question.


Hope this helps
 
shiju nair
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks amit,
from your reply i have found out the solution.
thanks once again.
 
Amit Ghorpade
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are welcome
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic