aspose file tools*
The moose likes Spring and the fly likes How to bind/validate an object that is not the commandclass Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "How to bind/validate an object that is not the commandclass" Watch "How to bind/validate an object that is not the commandclass" New topic
Author

How to bind/validate an object that is not the commandclass

Michael Houlo
Ranch Hand

Joined: Jun 07, 2010
Posts: 58
Dear,

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 ?
Thanks
 
jQuery in Action, 2nd edition
 
subject: How to bind/validate an object that is not the commandclass