• 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
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Command Object in MultiActionController

 
Ranch Hand
Posts: 120
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am new to spring,
i want to know whether Command Object is available in MultiactionController having some Method?
If yes then how can you use that?

Suggest me any study material that will explain this concept,
Thank you in advance.
 
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 have been struggling with MultiActionController object as well.

Here is my observation:

If I passed a session object as 3rd parameter, I got the session object without doing anything extra. If I passed a command object as 3rd parameter, I got a null object passed in. I agree. Because I haven't seen any where in Spring that tells MultiActionController about this command object yet. Then, I overrided the newCommandObject(Class) method to return a (new)copy of this command object, I got request parameters pushed into this object automatically by Spring.

Make sure the form input parameters match the attributes of command object. Just like ActionForm in Struts.

This is just my observation, again.

Frank

P.S. Command object can be passed as 4th parameter as well!
 
reply
    Bookmark Topic Watch Topic
  • New Topic