Results 1 to 4 of 4

Thread: where do you put your backing beans?

  1. #1
    Join Date
    Nov 2007
    Location
    Austin, TX USA
    Posts
    154

    Default where do you put your backing beans?

    for most forms i plan on using single domain objects as backing beans (command beans) per form. but for one form i was going to need to have a form bind to two of my domain objects, so i am creating a backing bean that holds references to two domain objects, like is explained here: http://forum.springframework.org/sho...t=commandNames

    where is the common place to store backing beans that you create? should i make afolder in controller/form/backingBeans? or put it in domain/backingBeans?

  2. #2
    Join Date
    Nov 2007
    Location
    Austin, TX USA
    Posts
    154

    Default

    any ideas?

  3. #3
    Join Date
    Nov 2006
    Location
    Vancouver, BC
    Posts
    25

    Default

    Whenever I use a non-domain class as a command, I create a class in the same package as my controller, bearing a name that starts with the same word(s), and then ending with "Form".

    e.g.

    FunnyForm.java
    FunnyFormController.java

  4. #4
    Join Date
    Oct 2008
    Posts
    17

    Default

    Any Command is use is in the web.command package

Posting Permissions

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