Jsp code for validating username and password

Thx Ajuba" id="ctl00_m_m_i_ctl00_gr_ctl11_bestanswerbody" class="textarea-bestanswerhidden" name="bestanswerbody" answerbody Id="3488121" /I am looking in to this. first get the username and password withthe Parameter("username") Parameter("password") use the String Utils class available in org.apache.String Utils class, which has methods that help you to perform the validations.All those functions are called from another function.It sets the focus to the input field until the user supplies a valid value.Following pictorial shows in which field, what validation we want to impose.We will create Java Script functions (one for each input field whose value is to validate) which check whether a value submitted by user passes the validation.

jsp code for validating username and password-53jsp code for validating username and password-86

</title> <script language=" Java Script"> function validate Password Using Reg Exp() function validate Password() </script> </head> <body> <input type="submit" onclick="javascript:validate Password Using Reg E xp()"/> </body> </html>" id="ctl00_m_m_i_ctl00_gr_ctl07_bestanswerbody" class="textarea-bestanswerhidden" name="bestanswerbody" answerbody Id="3488081" / <head> <title> Java Script Password Validation Script ................!!!!

Posted by SBukkawar (New) on May 6 at AM Dear Experts, I have to implement a validation for password using JSP/Servlet where: 1. Regards, Utsav" id="ctl00_m_m_i_ctl00_gr_ctl05_bestanswerbody" class="textarea-bestanswerhidden" name="bestanswerbody" answerbody Id="3488070" / Hi Samir, 1. function validate Fields //end of function Hope this helps...

First Name, Last Name and User ID should not be a part of Password. I want to validate this from server as well as client side. " id="ctl00_m_m_i_ctl00_gr_ctl03_bestanswerbody" class="textarea-bestanswerhidden" name="bestanswerbody" answerbody Id="3487501" / 1. function validate Fields //end of function Hope this helps... First Name, Last Name and User ID should not be a part of Password. something like Assuming ur textfields are named as per conventions....

can any of you write a perfect validating code for me because i can't think any more.

thanks i'll appreciate it perfection is for God only [ April 18, 2008: Message edited by: joseph okon ] Hi Joseph, Just try out the following: (1)Print the userid and password from the html page in the jsp page.

Leave a Reply