• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

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

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic