This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi, Severside Validation means validating the user entered fields after we submitting the request to the server. Server will check the fields for validity from the request and send appropriate message thru the response. Here one request-response cycle is happening.
On the other hand Client side validation does not involve any request submission to the server. Before submission itself validation done thru the script normally Java Script. Here the advantage is that request is not submitted and we save network traffic.
Here the advantage is that request is not submitted and we save network traffic.
But it is important to note that eventually the request will be submitted and then, regardless of whether client-side validation was used or not, the values must be subjected to server-side validation.
Originally posted by Adeel Ansari: Client-side validation:
- faster, but not reliable - You can have it