Results 1 to 2 of 2

Thread: Creating Dynamic Command Object in Spring MVC

  1. #1

    Default Creating Dynamic Command Object in Spring MVC

    Hi,

    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.

    Thanks.

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,632

    Default

    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.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •