24

What is the difference between using commandName and modelAttribute when sending form data?

<form:form method="post" modelAttribute="csvFileUploadVO">

and

<form:form method="post" commandName="csvFileUploadVO">

At which point of time should I use either of them?

puissant
  • 781
  • 2
  • 10
  • 17
  • 1
    http://stackoverflow.com/questions/21495616/difference-between-modelattribute-and-commandname-atributes-in-form-tag-in-sprin refer this link it will give you detailed information – Nitesh kumar Jul 24 '15 at 05:14

1 Answers1

27

There is no difference, two different attributes exist for historical reasons.

axtavt
  • 239,438
  • 41
  • 511
  • 482