Results 1 to 3 of 3

Thread: MultiActionController and multiple command Bean?

  1. #1
    Join Date
    Feb 2006
    Location
    Rome, Italy
    Posts
    77

    Default MultiActionController and multiple command Bean?

    hello,
    how can I bind a different command bean for each of the actions defined in the MultiActionController ?

    does it make sense to invoke:
    Code:
    newCommandObject(Clazz.class);
    inside the implementation of every defined action ? ..and not sure it makes sense at all..
    it 'd be nice if we could map, perhaps in the xml descriptor, a command object for every action...

  2. #2
    Join Date
    May 2005
    Location
    California, US
    Posts
    735

    Default

    The optional 3rd argument to the method can be a command bean.

  3. #3
    Join Date
    May 2005
    Location
    California, US
    Posts
    735

    Default

    From its api docs:
    May take a third parameter HttpSession in which an existing session will be required, or a third parameter of an arbitrary class that gets treated as command (i.e. an instance of the class gets created, and request parameters get bound to it)

Posting Permissions

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