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.
My SimpleFormController send a Customer(commandclass) object to my jsp which display client information.
A customer may have multiple contacts (Contact is another object which is not the commandClass).
If you click on edit on a contact, a form appears with the selected contact information.
I only can send the new information to the Controller trought the request object since it's not the commandClass...
Then, how can i use a Validator to check values ??
I'm able to save/update but not to use a validator..
Here is part of my SimpleFormController :
Here is part of my jsp :
Could you please tell me how can I do it ? What's the good way to do it ?