This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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!
Joined: Nov 19, 2002
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.