Deloitte interview question

Validation in struts. How it is done