how to bind data to list in spring form

后端 未结 4 1335
南笙
南笙 2021-02-06 05:02

I have a spring form with having backing object for it. The form is like this-



        
4条回答
  •  天命终不由人
    2021-02-06 05:42

    The error you are getting is correct as landingPageModels is a list. You would need to use index access like this landingPageModels[0].landingPage.url. If you have dynamic number of input/url, then you can use to create dynamic input variable names

提交回复
热议问题