• 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

Command Object in MultiActionController

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am still using Spring2x. How do I bind a command object into MultiActionController?
It seems to work fine if I pass a anonymous object into the handler methods. For instance,

But my .jsp file contains other input parameters that I want to bind. Customer class happens to be an entity bean that maps to Customer table in db. I cannot figure out how to map other input parameters(checkboxes, dropdown list, etc) to my MultiActionController. I cannot define these properties in my entity bean. I had monkeyed a lots with ServletRequesDataBinder object. But I still haven't been able to find the solution for this.

Please give me some hints!

Frank
 
Frank Truong
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I decide to 'memorize' these input parameters in the session. So, my controller and .jsp files can refer to them. I don't know whether this is the way I should do. But this 'binding' seems to be workable for me.

Please advise!

Thanks,
Frank
 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't really get it .. What do you mean ?
You just want to populate a dropdown list with another table as input data ? somethings like this ?
If so, just use your referenceData method.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic