java - Why we cannot change anything in validate method In Struts2? -


in struts2 validate method called before execute method. why cannot change field value in validate method?

any particular method should 1 thing. validate() method should validate data - should check whether it's correct, not try fix up. result of validation should pass or fail; if else, it's doing much.

(this isn't specific struts @ - it's general meaning of validation, imo.)


Comments