How to bind/validate an object that is not the commandclass
posted 5 years ago
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 ?