Aug 1st, 2012, 09:07 AM
Creating Dynamic Command Object in Spring MVC
Is it possible to create a dynamic command object in spring? like what we have in struts we have DynaActionForm? Similarly what is the default scope for the command object if it is not configured in the controller using sessionForm property as true or false? Please clarify.
Aug 1st, 2012, 12:03 PM
That are multiple questions..
No you cannot have a dynamic command object, you can however retrieve all parameters as a Map (in Spring 3.1) as mentioned in the reference guide.
The fact that it isn't stored in the session makes it request scoped there aren't anymore scopes request/session thats all with a plain Spring MVC application.
I suggest a read of the reference guide especially the web chapter as that explains some of your questions.