SpringMVC form:options items attribute: what exactly is it expecting?

前端 未结 2 1774
野趣味
野趣味 2021-02-19 20:24

I\'m still new to SpringMVC (and jstl for that matter). I\'m trying to populate options in a select from a list of objects. I\'ve found a way to do it using c:forEach, but I k

2条回答
  •  孤城傲影
    2021-02-19 20:30

    Usualy I am doing it with spring tag like this :

    
        
        
    
    

    don't forget including the namespace declaration : xmlns:springform="http://www.springframework.org/tags/form"

提交回复
热议问题