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've got the rudiments of a login going, and I've got the simple error messages working ("Username is required" -- via DynaActionForm and the validation plugin). Now, within my action class, I need to generate errors that are determined by DB interaction, like:
"User not found" "Invalid password" or "Databaes unavailable. Try again later."
I'm not sure how to feed those errors back into the validation framework. Could someone explain, please?
You don't display those errors through Validation.xml ,as they are not Validation errors. YOu have to either use ActionMessages or ActionErrors and add those messages into that object and display it on the browser.