Announcement Announcement Module
Collapse
No announcement yet.
simple thing, 2 command classes in 1 page Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • simple thing, 2 command classes in 1 page

    Dear all
    I would like to ask you all that how can i bind 2 command classes in one JSP page. I do have Model that contains
    Code:
    class Model{
     private String name;
     private Address address;
     ..
     some get & set
    }
    Code:
    class Address{
     private String no;
     private String street;
     ..
     some get & set
    }
    so how can i config or use spring to bind them if i use one JSP to collect data,
    Regards
    Roofimon

  • #2
    Hi,

    The answer is that you should create a form object that contains the two command objects and modify your JSP and controller accordingly.

    Mircea

    Comment

    Working...
    X