Announcement Announcement Module
Collapse
No announcement yet.
where do you put your backing beans? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    any ideas?

    Comment


    • #3
      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

      Comment


      • #4
        Any Command is use is in the web.command package

        Comment

        Working...
        X