Jsp code for validating username and password online dating sites for freaks

Minimum 8 digits I am not using any framework, so please don’t suggest Struts validation. =8) I think it will help you Sunil" id="ctl00_m_m_i_ctl00_gr_ctl07_bestanswerbody" class="textarea-bestanswerhidden" name="bestanswerbody" answerbody Id="3485319" / You need to create a function in java script and a common method in java code. In case of server side same you need to check it alpha numeric and also check it with the password and fname by get the value of these below code for example to check alpha value public static boolean is Alpha(String val) also add for numeric value like if ((chr Array[i] = '0' && chr Array[i] <'9')) you can also check the length in the first if (val.length()!Joseph, The error is telling you it cannot compile the jsp.First step is to check the file C:\Program Files\Apache Software Foundation\Tomcat 4.1\work\Standalone\localhost\java\Site Validate_jsp.java, line 74.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.

Samir You can write a Servlet using substring function to check all your validations and transfer to the Home Page only when the password is valid as per the validation script written by you. Regards, VR Venugopal Rao" id="ctl00_m_m_i_ctl00_gr_ctl01_bestanswerbody" class="textarea-bestanswerhidden" name="bestanswerbody" answerbody Id="3487466" / Dear Samir, You can write a Servlet using substring function to check all your validations and transfer to the Home Page only when the password is valid as per the validation script written by you. Regards, VR Venugopal Rao Thank you for response and showing intrest. Minimum 8 digits regarding ur requirements, you can write a javascript function on the page that'll be called on the click of the submit button..

I'm going to guess that you'll find the problem is in the line: Hi Joseph When you are declaring/writing in JSP scriplet that translated in service method while JSP to servlet translation.

If you would like to declare method then you can use JSP declarative such as sorry for bordering you guys my code connect to the database perfectly, but it is not validating the input from the login form rather with or without username/password,the jsp will still forward to the welcome page.

Also keep the dbase connections in a separate class.

With this design, you can easily find out where the error is instead keeping everything in a JSP.

Leave a Reply

  1. Freeskypesex 05-Apr-2017 20:36

    There is never a free phone chat line trial with us as we are always 100% free.