This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Command Object in MultiActionController

 
Frank Truong
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Michael Houlo
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic