开发者

what is the command object in spring framework [closed]

开发者 https://www.devze.com 2023-04-09 15:13 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. 开发者_StackOverflow社区

Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist

Closed 9 years ago.

Improve this question

Could you please explain about command object in spring frame work with an example?


from Spring Documentation:

  • Command Object - a JavaBean which will be populated with the data from your forms

Think of Command Object as a POJO/JavaBean/etc.. that backs the form in your presentation layer.

Once the form is submitted, all the individual attributes are mapped/bound to this object. On the way up to presentation, Command Object properties may be used to pre/populate the form.

check an example here

0

精彩评论

暂无评论...
验证码 换一张
取 消