Commons Validator provides the building blocks for both client side validation and server side data validation. It may be used standalone or with a framework like Struts.