Results 1 to 2 of 2

Thread: HashMap as command object?

  1. #1
    Join Date
    Mar 2005
    Location
    san diego
    Posts
    21

    Default 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. #2
    Join Date
    Mar 2005
    Location
    san diego
    Posts
    21

    Default 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?

Similar Threads

  1. Replies: 10
    Last Post: Nov 30th, 2009, 06:10 PM
  2. use hashmap to simplify commandClass?
    By vincent in forum Web
    Replies: 2
    Last Post: Oct 7th, 2005, 03:14 PM
  3. Replies: 1
    Last Post: Jul 21st, 2005, 02:35 AM
  4. Trying to create bean with Hashmap
    By jominor in forum Container
    Replies: 3
    Last Post: Jun 26th, 2005, 02:24 PM
  5. Why HashMap in JDBCTemplate.queryForList?
    By gaffonso in forum Data
    Replies: 2
    Last Post: Oct 15th, 2004, 04:04 PM

Posting Permissions

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