struts2 jquery tag select not loading data

后端 未结 2 1656
陌清茗
陌清茗 2021-01-24 14:33

I am trying to use tag to render my list in Struts2 jsp.

At the same location I have used a tag as well

Data is getting populated

2条回答
  •  爱一瞬间的悲伤
    2021-01-24 15:05

    You don't need to load jQuery twice, different versions might conflict with each other. This code is wrong

    
    
    
    

    The sj:select tag should work if your action returns JSON, but it uses old notation. Change it to

     
     
    

    Check that jquery, json plugins are on the class path and taglibs worked.

提交回复
热议问题