Results 1 to 2 of 2

Thread: simple thing, 2 command classes in 1 page

  1. #1
    Join Date
    Jan 2005
    Posts
    20

    Default 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. #2
    Join Date
    Dec 2004
    Location
    Bucuresti, Romania
    Posts
    72

    Default

    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

Similar Threads

  1. Replies: 4
    Last Post: Dec 17th, 2008, 01:47 PM
  2. Replies: 17
    Last Post: Jan 2nd, 2007, 01:43 PM
  3. JSF and WebFlow
    By bura in forum Web Flow
    Replies: 33
    Last Post: Apr 27th, 2006, 09:46 AM
  4. Replies: 0
    Last Post: Jun 10th, 2005, 08:22 AM
  5. Replies: 2
    Last Post: May 13th, 2005, 05:42 AM

Posting Permissions

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