Announcement Announcement Module
Collapse
No announcement yet.
HashMap as command object? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • HashMap as command object?

    Would someone please point to a reference showing how to use HashMap as a command object?

    Our web MVC is somewhat abstract, hence we do not want to create POJOs to model every request, we would prefer an abstract approach using either a Map or even something akin to DynaBean. However I cannot find one comment, forum message, anything on this subject with Spring.

    Any suggestions?

    Thanks.
    -Jo

  • #2
    Controller formBackingObject

    I suppose I could load the HashMap by overriding:

    SimpleFormController.formBackingObject( HttpServletRequest request )

    Yet that feels way too simple... no type checks, unless I go and craft a series of validators...

    All in all, I just keep thinking why NOT go with Struts?

    Comment

    Working...
    X