Java Bean
-
I've a Jsp Page that sends the username and password for validation to a java bean. Can u plz help me in writing the code for java bean to validate the login info since i'm new to java platform::(( reply to sweetselvi_s@yahoo.co.in reply me as ealry as p'ble thro the mail id sweeetselvi_s@yahoo.co.in
-
I've a Jsp Page that sends the username and password for validation to a java bean. Can u plz help me in writing the code for java bean to validate the login info since i'm new to java platform::(( reply to sweetselvi_s@yahoo.co.in reply me as ealry as p'ble thro the mail id sweeetselvi_s@yahoo.co.in
You need to compare the username and password (or a hash of the password) against a previously stored username and password (or password hash). The validation code should probably return only a simple boolean value; true for accepted, false for refused. But this isn't really an appropriate discussion board (or even an appropriate site) for discussing Java-specific things. Search on Google, and browse through some java sites. I guarantee you that a thousand people have already written exactly what you are describing, and probably a few hundred have explained the entire process on the web. I'm sure you can find an explanation if you look for a while.