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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -