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 questionCould 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
精彩评论