This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am unable to validate a date field, to not have a future date (the date shud not accept even tomorrows date i.e., it shud not be greater than today's date). I am using struts validator. Can I do the above mentioned validation using struts validator or I need to have a separate java class for doing the validation (fyi...i shud not use the form bean for any sort of validation)?
If you don't want to go to the trouble of creating a custom validation rule, an easier alternative would be to override the validate() method in your ActionForm and have it do the validation instead of the validation framework.