How to create validations on struts based applications?

NOTE : [This question was asked by Ravi]