PDA

View Full Version : Http Post Request Parameters Binding



sonyg
Aug 25th, 2011, 09:04 AM
Hi,
I am new to Spring MVC, hope you could help me?

Say I have a bean

class Student {
String name
Integer mobileNumber
}


and http POST request with parameters: personName=TestName, personMobile=1234567, personstreet=xxxxx

How could I bind above parameters to Student bean in a given controller?

Many Thanks
SonyG

dr_pompeii
Aug 25th, 2011, 12:08 PM
Hello

Read carefully this documentation 15. Web MVC framework (http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mvc.html) all the answer must be find it there with other valuables tips

Let me know your advance