I am a newbie in Java EE and I wanted to know that which of the following will execute faster, Javascript or code written in servlet?
Context : Regular expression validation on email field.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
JavaScriptisclient side validationso it will be faster. But if javascript are disabled in the browser it will not do the validations.Servletswill beserver side validations. It will be less faster but will be always better accurate in validation of fields.