Use <form:select> tag with a map

后端 未结 2 1272
误落风尘
误落风尘 2020-12-29 11:42

Is there a way to map the data inside a map to tag? I have a map Map in my code. Is there a way to map the option labels to the St

2条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-29 12:15

    See the Spring form:select and form:options documentation. Use items, itemValue, and itemLabel as needed.

    
        
        
    
    

提交回复
热议问题