On 1/18/07, maskkkk <[EMAIL PROTECTED]> wrote:


There is a line in the workflow of both the GET and POST which confuses
me.

It reads:



> The ServletRequestDataBinder  gets applied to populate the form object
> with current request parameters.
>
from -

http://www.springframework.org/docs/api/org/springframework/web/servlet/mvc/AbstractFormController.html
AbstractFormController Documentation - Spring 2.0

What does the ServletRequestDataBinder getting applied translate into in
method calls?  I don't understand what is meant here.


The ServletRequestDataBinder maps attributes in the request to properties on
the command object. It does a little bit more than just call methods - data
conversion, etc. As an example, if you had an input in a form with name
foo.name, and the command object is called foo, then the
ServletRequestDataBinder will call foo.setName() with the contents of the
request parameter. It all gets a little bit more involved when you have
check boxes and select lists, but I'm sure you get the idea :-)

Mike

http://i9.photobucket.com/albums/a58/Maskkkk/AbstractFormControllerHTTPGET.png

Thanks,
Andrew J. Leer
--
View this message in context:
http://www.nabble.com/SpringMVC-Documentation-Clarification-tf3034965s2369.html#a8433502
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to