Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

email mail field validation

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.

like image 437
xyz Avatar asked Nov 26 '22 05:11

xyz


1 Answers

JavaScript is client side validation so it will be faster. But if javascript are disabled in the browser it will not do the validations.

Servlets will be server side validations. It will be less faster but will be always better accurate in validation of fields.

like image 126
Mithun Sasidharan Avatar answered Jan 11 '23 05:01

Mithun Sasidharan