Jsp code for validating username and password Absolutely free adult chat site

But if both passwords don't match, a short "error page" should be included and displayed at the bottom of the same page after clicking the submit button. But when you submit, you will send the pass1, pass2 values of the input fields and you will do the validation. Remember the page that you enter at the action attribute of the form is where the values are sent. The "pass2" string will always be equal to "pass2" string. The only problem I have left right now is how to make it go to "successpage.jsp" if both passwords inputted on the "mainpage.jsp" are the same. When you first go to that page, they are null, since you didn't submit anything.

I can't get it to include the short error page on the same page after clicking the submit button. Here's what I've got so far: Try to run that code and see what happens. After you check that they are not null, then do whatever validations you want.

Because the input type obscures the text typed, you should let the user confirm that they haven't made a mistake.

The simplest way to do this is to have the password entered twice, and then check that they are identical.

Details needed are username, password, first name, last name, etc. When you submit to a page use these methods to get the values from request.

My problem has something to do with the password validation. The first time you go to that page for the user to enter the values, the request is empty, so the password1, password2 would be null and the validation will not take place.

Hi, We were asked to make a subscription type of form.In this example, we are using the Oracle10g database to match the email Id and password with the database.The table name is user432 which have many fields like name, email, pass etc.In some cases, such as on mobile devices, displaying the password may improve usability without compromising security.After all it's only the browser display being obfuscated and not the data transfer.Instead of as this lets the browser (and the user) know that the contents of that field need to be secured.


Leave a Reply