Results 1 to 4 of 4

Thread: what is the meaning of command object and form object

  1. #1

    Default what is the meaning of command object and form object

    what is the meaning of command object and form object
    please explain it

  2. #2
    Join Date
    Jun 2005
    Posts
    13

    Default

    A command object is usually just a simple java bean which will be populated with the data from the form submission. As far as i know a command object and form object are used interchangeably i.e they are the same thing.

  3. #3

    Default help using form object

    if you take in the Object 'command'
    from the onSubmit() method in your form controller,
    and create an instance of a class [ex. Account]
    by 'Account account=(Account)command;'
    and this class implements HttpSessionBindingListener,
    must you add this class to the session or is this done automatically?

    should i call session.setAttribute("account", account) ?

    or is this automatically done since it implements HttpSessionBindingListener?
    would it add the instance of the object with variables filled in from the form?
    how could you then get the object from the session?

  4. #4
    Join Date
    Aug 2004
    Posts
    1,905

    Default

    You can configure SFC to store it's form in either the request or the session by setting the property "sessionForm" to false (default) or true.

Posting Permissions

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