Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Michael Houlo
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 ?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!