wood burning stoves 2.0*
The moose likes JSP and the fly likes problem with validation between database and jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "problem with validation between database and jsp page" Watch "problem with validation between database and jsp page" New topic
Author

problem with validation between database and jsp page

shiju nair
Ranch Hand

Joined: Jul 18, 2008
Posts: 45
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.
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

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


SCJP, SCWCD.
|Asking Good Questions|
shiju nair
Ranch Hand

Joined: Jul 18, 2008
Posts: 45
thanks amit,
from your reply i have found out the solution.
thanks once again.
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

You are welcome
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with validation between database and jsp page
 
Similar Threads
Record Locking in multi-user
Records are visible but not accessible error
displaying text in textArea
How to use the enter key to link
Reloading JSP page when there is any update in the database