Our Struts application duplicates many validation checks for forms: (1) Client side in jQuery / JS and (2) separately, server side in Java.
I asked why, and he said: "You never trust the client side." But, on the other hand, as a convenience, he also wants to provide JS / jQuery validation in the browser.
There is a lot of redundant code. What is the right strategy to re-check on both sides? Are people currently manually duplicating client / server side validation?
source
share